@extends('admin.layouts.app') @section('title', 'Fare') @section('content') @include('admin.includes.alerts')
@if(\Illuminate\Support\Facades\Auth::user()->role == 1) Register Fare @endif @if(\Illuminate\Support\Facades\Auth::user()->role == 1) @endif @foreach($fares as $i => $fare) @if(\Illuminate\Support\Facades\Auth::user()->role == 1) @endif @endforeach
SN Route VIP Luxury Semi-Luxury Ordinary Distance(KM) DurationAction
{{$i+1}} {{$fare->route}} {{$fare->vip}} {{$fare->luxury}} {{$fare->semi_luxury}} {{$fare->ordinary}} {{$fare->distance}} {{$fare->duration}}{!! 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() !!}
@endsection