@extends('layouts.main') @section('content') @push('head')
Ticket Orders
# | 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 --}} {{-- --}} |