@extends('layouts.layoutMaster')
@section('title', 'Driver Detail')
@php
$breadcrumbs = [
['url' => route('dashboard'), 'label' => 'Dashboard'],
['url' => route('driver.index'), 'label' => 'Driver'],
['url' => route('driver.show', ['driver' => $model->id]), 'label' => $model->full_name],
];
@endphp
@section('content')
Basic Information
| Driver Code |
{{ $model->code }} |
| Full Name |
{{ $model->full_name }} |
| Nick Name |
{{ $model->nick_name ?: '-' }} |
| Phone Number |
{{ $model->phone }} |
| Address |
{{ $model->address }} |
Identity & License Information
| Identity Number (KTP) |
{{ $model->identity_number }} |
| License Number (SIM) |
{{ $model->license_number }} |
| License Type |
{{ $model->license_type }} |
| License Expiry Date |
{{ $model->license_date?->format('d/m/Y') ?? '-' }} |
| Family Card (KK) |
{{ $model->kk_number ?: '-' }} |
| BPJS Number |
{{ $model->bpjs_number ?: '-' }} |
Bank Information
| Bank Name |
{{ $model->bank_name ?: '-' }} |
| Account Number |
{{ $model->bank_no ?: '-' }} |
| Account Owner Name |
{{ $model->bank_owner_name ?: '-' }} |
Employment Information
| Joined Date |
{{ $model->joined_date?->format('d/m/Y') ?? '-' }} |
| Status |
@php
$statusClass = match ($model->status) {
'active' => 'bg-success',
'blacklist' => 'bg-danger',
'resigned' => 'bg-warning',
default => 'bg-secondary',
};
$statusLabel = match ($model->status) {
'active' => 'Active',
'blacklist' => 'Blacklist',
'resigned' => 'Resigned',
default => $model->status,
};
@endphp
{{ $statusLabel }}
|
| Notes |
{{ $model->notes ?: '-' }} |
Document Files
| Identity File (KTP) |
@if ($model->identity_file)
View File
@else
-
@endif
|
| License File (SIM) |
@if ($model->license_file)
View File
@else
-
@endif
|
| Family Card File (KK) |
@if ($model->kk_file)
View File
@else
-
@endif
|
| Photo |
@if ($model->photo_file)
View File
@else
-
@endif
|
| SKCK File |
@if ($model->skck_file)
View File
@else
-
@endif
|
Created: {{ $model->created_at?->format('d/m/Y H:i') ?? '-' }}
@if ($model->createdBy)
by {{ $model->createdBy->name }}
@endif
Last Updated: {{ $model->updated_at?->format('d/m/Y H:i') ?? '-' }}
@if ($model->updatedBy)
by {{ $model->updatedBy->name }}
@endif
@endsection