@if ($listMode)

Clerks

@elseif($createMode)

Add Clerk

@elseif($updateMode)

Edit Clerk

@endif
@if ($listMode) Add Clerk @else Back to Clerks @endif
@if (session('success'))

{{ session('success') }}

@endif @if (session('danger'))

{{ session('danger') }}

@endif
@if ($listMode) @foreach ($clerks as $key => $item) @php $plant = App\Models\People::where('user_id', $item->id) ->with('plants') ->first(); $locations = App\Models\People::where('user_id', $item->id) ->with('locations') ->get(); @endphp @endforeach
# Name Phone Email
{{ $key + 1 }} {{ $item->name }} {{ $item->phone }} {{ $item->email }}
@elseif($createMode)
@error('email')

{{ $message }}

@enderror
@error('password')

{{ $message }}

@enderror
@if (count($locations) > 0) @foreach ($locations as $key => $item)
{{ $item->storage_location_name }}
@endforeach @endif
@elseif($updateMode) @endif