@if(\Illuminate\Support\Facades\Auth::user()->role == 1)
Register Fare
@endif
SN | Route | VIP | Luxury | Semi-Luxury | Ordinary | Distance(KM) | Duration | @if(\Illuminate\Support\Facades\Auth::user()->role == 1)Action | @endif
---|---|---|---|---|---|---|---|---|
{{$i+1}} | {{$fare->route}} | {{$fare->vip}} | {{$fare->luxury}} | {{$fare->semi_luxury}} | {{$fare->ordinary}} | {{$fare->distance}} | {{$fare->duration}} | @if(\Illuminate\Support\Facades\Auth::user()->role == 1){!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'GET', 'route' => ['Edit Latra', $fare->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")."');", 'route' => ['Delete Latra', $fare->id])) !!} {!! Form::submit('Delete', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-danger')) !!} {!! Form::close() !!} | @endif