@extends('admin.layouts.app') @section('title', 'Buses') @section('content') @include('admin.includes.alerts')
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() !!} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} @foreach($buses as $i => $bus) @endforeach
SN Plate # Class Seats Order Status Operator Manufacturer Image Action
{{$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}} {{$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() !!}
{{ $buses->links() }}
@endsection