| {{__('app.customers.name')}} | {{__('app.licenses.license_number')}} | {{__('app.licenses.issue_date')}} | {{__('app.licenses.expiry_date')}} | {{__('app.licenses.license_status')}} | {{__('app.status')}} | {{__('app.action')}} | @foreach ($licenses as $license) @if(isset($license->customer))
|---|---|---|---|---|---|---|
| {{$license->customer->name}} | {{$license->license_number}} | {{$license->issue_date->format('d/m/Y')}} | {{$license->expiry_date->format('d/m/Y')}} | @php $isExpired = \Carbon\Carbon::parse($license->expiry_date)->lt(\Carbon\Carbon::today()); $isActive = !$isExpired; @endphp@if($isActive) Active @else Expired @endif |
status_label == 'active' ? 'checked' : '' }}>
{{ $license->status_label }}
|