@extends('layouts.main') @section('content') @push('head') Page title | Site title @endpush
@if($errors->any())
@endif @if (session('status'))
{{ session('status') }}
@endif @if (session('error_m'))
{{ session('error_m') }}
@endif

{{$pname}} Orders

All information about {{$pname}} Orders
@if(sizeof($orders)>0) @php $counter=1; @endphp @foreach($orders as $order) @php $counter++; @endphp @endforeach @endif
# Agency(Location) Ticket Amount # Tickets Status Kiosk Transaction Id Customer Name Ordered By Date Actions
{{$counter}} @foreach($locations as $location) @if($order->toal_id==$location->location_id) {{$order->agency_name}}({{$location->location_name}}) @endif @endforeach {{$order->departure_city}} - {{$order->arrival_city}} @foreach($ticket_types as $ticket_type) @if($ticket_type->ticket_id==$order->ticket_type_id) {{$ticket_type->ticket_name}} @endif @endforeach - {{$order->ticket_price}} {{$order->amount}} {{$order->quantity}} @switch($order->status) @case(1) Paid @break @case(0) Pending @break @case(-1) Cancelled @break @default @endswitch {{$order->kiosk_code}} ({{$order->kiosk_location}}) {{$order->trx}} {{$order->first_name}} {{$order->last_name}} @foreach($members as $member) @if($member->id == $order->member_id) {{$member->username}} {{$member->role_name}} @endif @endforeach {{$order->creation_date}}
{{-- --}}
{{-- See Passengers --}}
{{-- modals --}} {{-- --}} {{-- --}} {{-- end modals --}} @push('script') @endpush @endsection'