@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

Ticket Orders

All information about Ticket Orders
@if(sizeof($orders)>0) @php $counter=1; @endphp @foreach($orders as $order) @php $counter++; @endphp @endforeach @endif
# Agency(Location) Ticket Amount # Tickets Status Transaction Id Customer Name Ordered By Date Actions
{{$counter}} {{--agency--}} @foreach($locations as $location) @if($order->agency_location_id==$location->location_id) {{$order->agency_name}}({{$location->location_name}}) @endif @endforeach {{--ticket--}} @foreach($cities as $city) @if($city->id==$order->departure_city) {{$city->name}} @endif @endforeach - @foreach($cities as $city) @if($city->id==$order->arrival_city) {{$city->name}} @endif @endforeach - @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->order_status) @case(1) Paid @break @case(-1) Cancelled @break @case(0) Pending @break @default @endswitch {{$order->trx}} {{--trx--}} {{$order->first_name}} {{$order->last_name}} {{--name--}} {{-- orderby --}} @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'