| Tanggal | Equipment | Facility | Type | User | Site | Photos | Description |
|---|---|---|---|---|---|---|---|
| {{ $record->performed_at?->format('d M Y') }} | {{ $record->equipment?->name }} | {{ $record->fasility?->name }} | {{ $record->maintenance_type }} | {{ $record->performer?->name }} | {{ $record->site?->name }} | {{-- FOTO --}}
@foreach ($record->photos->take(3) as $photo)
@php
// Bersihkan path jika ada prefix 'storage/' ganda
$cleanPath = str_replace('storage/', '', $photo->photo_path);
$fullPath = storage_path('app/public/' . ltrim($cleanPath, '/'));
@endphp
@if (file_exists($fullPath))
{{-- Menggunakan path absolut sistem adalah cara paling stabil --}}
|
{{ $record->work_description }} |