@extends('layouts.app') @section('title', 'Customers') @section('content')
| Code | Name | Contact Person | Phone | Devices | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $customer->customer_code }} | {{ $customer->customer_name }} | {{ $customer->contact_person ?? '-' }} | {{ $customer->contact_phone ?? '-' }} | {{ $customer->rental_devices_count ?? $customer->rentalDevices()->count() ?? 0 }} | @if($customer->status === 'active') Active @else Inactive @endif | |
| No customers found. | ||||||