@extends('admin.layouts.app') @section('title', 'Today Online Booking') @section('content') @include('admin.includes.alerts')
Mauzo Mtandaoni

@php $localTime = new \DateTime("now", new \DateTimeZone('Africa/Dar_es_Salaam')); $kifuaDate = $localTime->format('Y-m-d'); $today = $localTime->format('Y-m-d'); $bookings = \Illuminate\Support\Facades\DB::table('booking_histories') ->leftJoin('sub_routes', function ($join) { $join->on('sub_routes.id', '=', 'booking_histories.sub_route_id'); }) ->leftJoin('routes', function ($join) { $join->on('routes.id', '=', 'sub_routes.route'); }) ->leftJoin('schedules', function ($join) { $join->on('schedules.id', '=', 'booking_histories.schedule_id'); }) ->where('booking_histories.company', '=', \Illuminate\Support\Facades\Auth::user()->company) ->where('schedules.trip_date', $today) ->where('booking_histories.status', '=', 4) ->select('booking_histories.fullname as passenger', 'booking_histories.msisdn', 'booking_histories.status', 'booking_histories.booking_date') ->count(); echo $bookings; @endphp Tickets @php $localTime = new \DateTime("now", new \DateTimeZone('Africa/Dar_es_Salaam')); $kifuaDate = $localTime->format('Y-m-d'); $today = $localTime->format('Y-m-d'); $mauzo = \Illuminate\Support\Facades\DB::table('booking_histories') ->leftJoin('sub_routes', function ($join) { $join->on('sub_routes.id', '=', 'booking_histories.sub_route_id'); }) ->leftJoin('routes', function ($join) { $join->on('routes.id', '=', 'sub_routes.route'); }) ->leftJoin('schedules', function ($join) { $join->on('schedules.id', '=', 'booking_histories.schedule_id'); }) ->where('booking_histories.company', '=', \Illuminate\Support\Facades\Auth::user()->company) ->where('schedules.trip_date', $today) ->where('booking_histories.status', '=', 4) ->select('booking_histories.fullname as passenger', 'booking_histories.msisdn', 'booking_histories.status', 'booking_histories.booking_date') ->sum('booking_histories.fare'); echo number_format($mauzo); @endphp TZs

@foreach ($routesReport as $x => $route)
@endforeach
{{--
--}}
{{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @foreach($manifests as $i => $manifest)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @endforeach--}} {{-- --}} {{--
NoParcelWorthyCashTracking#DestinationSenderReceiverContactsAgentOfficeDate
{{$i+1}}{{ $manifest->parcel }}{{ $manifest->parcelWorth }}{{ $manifest->collection }}{{ $manifest->trackingNumber }}{{ $manifest->destination }} {{ $manifest->sender }}{{ $manifest->receiver }}{{ $manifest->senderMsisdn }}--}} {{-- @php--}} {{-- $agent = \App\Models\Agent::where(['id' => $manifest->senderAgent])->first()->name;--}} {{-- echo $agent;--}} {{-- @endphp--}} {{-- --}} {{-- @php--}} {{-- $office = \App\Models\Office::where(['id' => $manifest->sentOffice])->first()->location;--}} {{-- echo $office;--}} {{-- @endphp--}} {{-- {{ $manifest->dateSent }}
--}} {{--
--}} {{--
--}} @endsection