@forelse ($asset->maintenanceLogs as $log)
{{ \App\Models\SmartCity\AssetMaintenanceLog::TYPES[$log->maintenance_type] ?? $log->maintenance_type }}
{{ optional($log->performed_at)->format('d M Y H:i') ?: '-' }} | {{ $log->performed_by_name ?: ($log->performer?->name ?: 'Sistem') }}
{{ $log->status_before ?: '-' }} -> {{ $log->status_after ?: '-' }}
{{ $log->condition_before ?: '-' }} -> {{ $log->condition_after ?: '-' }}
@if ($log->description)
{{ $log->description }}
@endif
Estimasi: {{ $log->cost_estimate ? number_format((float) $log->cost_estimate, 0, ',', '.') : '-' }}
|
Aktual: {{ $log->cost_actual ? number_format((float) $log->cost_actual, 0, ',', '.') : '-' }}
@if ($log->attachment_url)
Buka Lampiran
@endif
@empty
Belum ada log maintenance untuk aset ini.
@endforelse