@canany(['edit_sub-services', 'delete_sub-services']) @endcanany @if (isset($cars) && !empty($cars)) @foreach ($cars as $k => $item) {{-- @canany(['edit_cars', 'delete_sub-services']) --}} {{-- @endcanany --}} @endforeach @endif
S.no Provider Name Car Name Image statusActions
{{($cars->perPage() * ($cars->currentPage() - 1)) + $k + 1}} {{ucfirst($item->provider->name)}} {{ucfirst($item->car->name)}}
active == 1 ? 'checked' : ''}} onchange="change_status('{{$item->id}}', 'car_provider', '#customSwitchGlow{{$item->id}}', 'active');" id="customSwitchGlow{{$item->id}}">
@include('demand.shared._actions', [ "entity" => "provider-cars", "id" => $item->id ])
{{ $cars->links() }}