@extends('admin.layouts.app') @section('title') Unit List @endsection @section('content') Unit List @can('create unit') Add @endcan Sl Shop Name Unit Name Status Action @foreach($data as $item) @can('view unit') {{ $loop->iteration }} {{ $item->shop?->name }} {{ $item->name }} status == 1 ? 'checked' : '' }}> @can('edit unit') @endcan @can('delete unit') @csrf @method('DELETE') @endcan @endcan @endforeach @endsection @section('script') @endsection