@forelse ($readings as $reading)
    <tr>
        <td data-label="Датум">{{ $reading->reading_date->format('d.m.Y') }}</td>
        <td data-label="Клиент">{{ $reading->printer?->client?->name ?? '—' }}</td>
        <td data-label="Печатач">{{ $reading->printer ? $reading->printer->manufacturer.' '.$reading->printer->model : '—' }}</td>
        <td data-label="Сериски број">{{ $reading->printer?->serial_number ?? '—' }}</td>
        <td data-label="Техничар">{{ $reading->technician?->name ?? '—' }}</td>
        <td data-label="" class="text-end">
            @if ($reading->printer)
                <a href="{{ route('printers.show', $reading->printer) }}" class="btn btn-sm btn-light border">Сервисна книга</a>
            @endif
        </td>
    </tr>
@empty
    <tr><td colspan="6" class="text-center text-muted py-4">Нема резултати</td></tr>
@endforelse
