@extends('garage.layouts.app') @section('title', $title ?? 'Report') @push('styles') @endpush @section('content')

@if(!empty($icon))@endif {{ $title ?? 'Report' }}

@if(!empty($subtitle))
{{ $subtitle }}
@endif
Back to reports
@if(!empty($filters))
@foreach(($filters ?? []) as $f) @php $type = $f['type'] ?? 'text'; $name = $f['name'] ?? ''; $label = $f['label'] ?? $name; $value = $f['value'] ?? ''; $options = $f['options'] ?? []; $col = $f['col'] ?? 'col-6 col-lg-2'; @endphp
@if($type === 'select') @else @endif
@endforeach
@endif @if(!empty($kpis))
@foreach(($kpis ?? []) as $k)
{{ $k['label'] }}
{{ $k['value'] }}
@endforeach
@endif
{{ $tableTitle ?? 'Details' }}
@if(!empty($tableHint))
{{ $tableHint }}
@endif
@foreach(($columns ?? []) as $c) @endforeach @forelse(($rows ?? []) as $r) @foreach(($columns ?? []) as $c) @php $k = $c['key']; $align = $c['align'] ?? ''; @endphp @endforeach @empty @endforelse
{{ $c['label'] }}
{!! $r[$k] ?? '' !!}
No records found.
@endsection