Register Bus
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'POST',
'route' => ['Print Bus'])) !!}
{!! Form::submit('Print Buses', array('class' => 'btn btn-sm btn-dark pull-right')) !!}
{!! Form::close() !!}
{{-- --}}
{{--
--}}
{{-- --}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{-- --}}
{{--
--}}
{{--
--}}
{{--
--}}
SN |
Plate # |
Class |
Seats |
Order |
Status |
Operator |
Manufacturer |
Image |
Action |
@foreach($buses as $i => $bus)
{{$i + $buses->firstItem()}} |
{{$bus->bus_reg_no}} |
{{$bus->class}} |
{{$bus->capacity}} |
{{$bus->seat_order}} |
@if($bus->status == '1')
Active
@elseif($bus->status == '0')
Inactive
@elseif($bus->status == '2')
Gerage
@else
No Information
@endif
|
{{\App\Models\Company::where(['id' => $bus->company])->first()->name}} |
{{$bus->manufacturer}} |
|
{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'POST',
'onsubmit' => "return confirm('".trans("Are sure you want to Delete")."');",
'route' => ['Delete Bus', $bus->id])) !!}
{!! Form::submit('Delete', array('class' => 'btn btn-sm btn-danger')) !!}
{!! Form::close() !!}
|
@endforeach
{{ $buses->links() }}