Register Tender
SN | Bus | Passengers | Rate | Amount Paid | Driver | Loading Place | Off-Loading Place | Travel Date | Status | Action |
---|---|---|---|---|---|---|---|---|---|---|
{{$i+1}} | @php $bus = \App\Models\Bus::where(['id' => $tender->bus_id])->first()->bus_reg_no; echo $bus; @endphp | {{ $tender->booked_seats }} | {{ $tender->rate }} | {{ $tender->collection }} | @php $driver = \App\User::where(['id' => $tender->driver])->first()->name; echo $driver; @endphp | {{ $tender->loading_place }} | {{ $tender->offloading_place }} | {{ $tender->trip_date }} | @if($tender->boarding_status == 'Booking is OPEN') Queued @elseif($tender->boarding_status == 'On Journey') On Road @elseif($tender->boarding_status == 'Booking is CLOSED') Served @endif | {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'GET', 'route' => ['Edit Tender', $tender->id])) !!} {!! Form::submit('Edit', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-primary')) !!} {!! Form::close() !!} {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'POST', 'onsubmit' => "return confirm('".trans("Are sure you want to Delete this Tender")."');", 'route' => ['Delete Agent', $tender->id])) !!} {!! Form::submit('Delete', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-danger')) !!} {!! Form::close() !!} |