{{-- {!! 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() !!}--}}
{{-- {!! 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() !!}--}}
{{-- {{ $manifestsSummary->links() }}--}}
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() !!}--}}
SN | Departure | Route | Bus | Driver | @if($route > 52)Conductor | @endifCollection (TZS) | Occupancy | @if(\Illuminate\Support\Facades\Auth::user()->role == 9)Target | @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 10)Accounts | @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 3)Actions | @endif|
---|---|---|---|---|---|---|---|---|---|---|---|
{{ $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 }} | @if($route > 52){{ $manifest->trip_conductor }} | @endif{{ number_format($manifest->collection) }} | {{ $manifest->booked_seats }} | @if(\Illuminate\Support\Facades\Auth::user()->role == 9){{ $manifest->percentage }}% | @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 10)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() !!} | @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 3){!! 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() !!} | @endif