@extends('dashboard.layout.master') @section('content')
@include('dashboard.layout.navbar') @php $current_user = Auth::user(); if ($current_user) { $allow_access = allow_access($current_user->id); } $lots_management = json_decode($allow_access->lots_management); array_unshift($lots_management, 0); @endphp
Lot list
@if($lots_management[1] == 5) Create Lots @endif
@foreach($lots as $item) @endif @endforeach
Database Id Lot Name Actions
{{$item->id}} {{$item->name}} @if($lots_management[3] == 7) Edit @endif @if($lots_management[4] == 8) {{$item->status=='0' ? 'Active' : 'Inactive'}}
@if(session('error')) @endif @if(session('success')) @endif @endsection