@extends('layouts.structure') @section('content')

Client List

Create New Client
@if (session('success')) @endif @if (session('error')) @endif
@forelse ($clients as $index => $client) @empty @endforelse
ID Client Code Company Name Plants Contact Person Actions
{{ $index + 1 }} {{ $client->client_code }} {{ $client->client_name }} @if ($client->plants && $client->plants->isNotEmpty())
    @foreach ($client->plants as $plant)
  • {{ $plant->name }}
  • @endforeach
@else N/A @endif
{{ $client->contact_person ?? 'N/A' }} View Edit
No Clients Found
@endsection