@extends('master') @section('content') @php $currency = \App\Models\Setting::first()->currency; @endphp
@include('admin.layout.breadcrumbs', [ 'title' => __('View Orders'), ])
@if (session('status')) @endif

{{__('Order List')}}

{{-- for print and pdf only --}} {{-- for print and pdf only --}} @foreach ($orders as $item) @if (isset($item->customer)) @else @endif {{-- for print and pdf only --}} @if ($item->payment_status == 0) {{-- for print and pdf only --}} @else {{-- for print and pdf only --}} @endif @endforeach
{{__('Order Id')}} {{__('Customer Name')}} {{__('Event Name')}} {{__('Date')}} {{__('Sold Ticket')}} {{__('Payment')}} {{__('Payment Gateway')}} {{ __('Order Status') }}{{__('Order Status')}} {{ __('Payment Status') }}{{__('Payment Status')}} {{__('Action')}}
{{$item->order_id}} {{$item->customer->name.' '.$item->customer->last_name}}
{{$item->event->name}}

{{$item->event->start_time}}

{{$item->created_at->format('Y-m-d')}}

{{$item->created_at->format('h:i a')}}

{{$item->quantity.' ticket'}} {{$currency.$item->payment}} {{$item->payment_type}} {{ $item->order_status }} {{ $item->payment_status == 0? 'Pending':'' }}{{ $item->payment_status == 1? 'Complete':'' }}
@endsection