@extends('admin.layouts.app') @section('title', 'Trips') @section('content') @include('admin.includes.alerts')
{{-- {!! Form::open(array(--}} {{-- 'style' => 'display: inline-block;',--}} {{-- 'method' => 'GET',--}} {{-- 'route' => ['Print Trips'])) !!}--}} {{-- {!! Form::submit('Print Trips', array('class' => 'pull-right mb-2 mr-2 btn-icon btn-sm btn-primary')) !!}--}} {{-- {!! Form::close() !!}--}}
Route : {{ $origin }} - {{ $destination }}
{{-- {!! Form::open(array(--}} {{-- 'style' => 'display: inline-block;',--}} {{-- 'method' => 'GET',--}} {{-- 'route' => ['Print Timetable', $id])) !!}--}} {{-- {!! Form::submit('Print Timetable', array('class' => 'pull-right btn btn-sm btn-dark')) !!}--}} {{-- {!! Form::close() !!}--}}
{{-- --}}
{{-- {!! Form::open(array(--}} {{-- 'style' => 'display: inline-block;',--}} {{-- 'method' => 'GET',--}} {{-- 'route' => ['Print Devices'])) !!}--}} {{-- {!! Form::submit('Print Devices', array('class' => 'pull-right btn btn-sm btn-primary')) !!}--}} {{-- {!! Form::close() !!}--}}
{{-- --}}
@if($route > 52) @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 9) @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 10) @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 3) @endif @foreach($manifestsSummary as $i => $manifest) {{-- --}} @if($route > 52) @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 9) @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 10) @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 3) @endif @endforeach
SN Departure Route Bus DriverConductorCollection (TZS) OccupancyTargetAccountsActions
{{ $i + 1 }}--}} {{-- @php--}} {{-- $new_str = str_replace('NAMBA ', '', $manifest->label);--}} {{-- echo $new_str;--}} {{-- @endphp--}} {{-- {{ $manifest->departure }} @php if($route == 51 || $route == 52){ if($manifest->origin == "DAR ES SALAAM"){ $pointA = "DAR"; }elseif ($manifest->origin == "MOROGORO"){ $pointA = "MORO"; } if($manifest->destination == "DAR ES SALAAM"){ $pointB = "DAR"; }elseif ($manifest->destination == "MOROGORO"){ $pointB = "MORO"; } }else{ $pointA = $manifest->origin; $pointB = $manifest->destination; } echo $pointA .' - '.$pointB; @endphp {{ $manifest->busRegNo }} {{ $manifest->trip_driver }}{{ $manifest->trip_conductor }}{{ number_format($manifest->collection) }} {{ $manifest->booked_seats }}{{ $manifest->percentage }}% Print Manifest {{-- {!! Form::open(array(--}} {{-- 'style' => 'display: inline-block;',--}} {{-- 'method' => 'GET',--}} {{-- 'route' => ['Print Manifest', $manifest->schedule_id])) !!}--}} {{-- {!! Form::submit('Print Manifest', array('class' => 'btn btn-sm btn-dark', 'target' => '_blank')) !!}--}} {{-- {!! Form::close() !!}--}} {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'GET', 'route' => ['Cash In Manifest', $manifest->schedule_id])) !!} {!! Form::submit('Cash In', array('class' => 'btn btn-sm btn-success')) !!} {!! Form::close() !!} {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'GET', 'route' => ['Edit Trip', $manifest->schedule_id])) !!} {!! Form::submit('Edit', array('class' => 'btn btn-sm btn-success', 'target' => '_blank')) !!} {!! Form::close() !!} {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'POST', 'onsubmit' => "return confirm('".trans("Are sure you want to Delete Trip")."');", 'route' => ['Delete Trip', $manifest->schedule_id])) !!} {!! Form::submit('Delete', array('class' => 'btn btn-sm btn-danger')) !!} {!! Form::close() !!}
{{-- {{ $manifestsSummary->links() }}--}}
@endsection