@forelse($machines as $machine)
| {{ $machine->id }} |
{{ $machine->category }} |
{{ $machine->sub_type ?? '-' }} |
{{ $machine->manufacturer ?? '-' }} |
{{ $machine->group_name ?? '-' }} |
{{ $machine->status }}
|
@if($machine->specifications)
@foreach(array_slice($machine->specifications, 0, 2) as $key => $val)
{{ $key }}: {{ $val }}
@endforeach
@if(count($machine->specifications) > 2)
+{{ count($machine->specifications) - 2 }}
@endif
@else
-
@endif
|
@empty
| No machines found matching the criteria. |
@endforelse