diff --git a/resources/views/filament/tenant/pages/reports.blade.php b/resources/views/filament/tenant/pages/reports.blade.php index dcbea4a..53ca75e 100644 --- a/resources/views/filament/tenant/pages/reports.blade.php +++ b/resources/views/filament/tenant/pages/reports.blade.php @@ -5,217 +5,274 @@ $periods = $this->periods(); @endphp -
| Metodă | Tranz. | Total | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Metodă | Tranz. | Total |
|---|---|---|
| {{ \App\Models\Tenant\Payment::METHODS[$row->method] ?? $row->method }} | -{{ $row->cnt }} | -{{ number_format((float)$row->total, 2, '.', ' ') }} | +
| {{ \App\Models\Tenant\Payment::METHODS[$row->method] ?? $row->method }} | +{{ $row->cnt }} | +{{ number_format((float)$row->total, 2, '.', ' ') }} |
| Nicio plată în perioada selectată. | ||
| Nicio plată în perioada selectată. | ||
| Categorie | Nr. | Total | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Categorie | Nr. | Total |
|---|---|---|
| {{ \App\Models\Tenant\Expense::CATEGORIES[$row->category] ?? $row->category }} | -{{ $row->cnt }} | -{{ number_format((float)$row->total, 2, '.', ' ') }} | +
| {{ \App\Models\Tenant\Expense::CATEGORIES[$row->category] ?? $row->category }} | +{{ $row->cnt }} | +{{ number_format((float)$row->total, 2, '.', ' ') }} |
| Nicio cheltuială. | ||
| Nicio cheltuială. | ||
| {{ \App\Models\Tenant\WorkOrder::STATUSES[$row->status] ?? $row->status }} | -{{ $row->cnt }} | + @forelse ($data['by_status'] as $row) +
| {{ \App\Models\Tenant\WorkOrder::STATUSES[$row->status] ?? $row->status }} | +{{ $row->cnt }} |
| Nicio fișă în perioada selectată. | |
| Mecanic | -Specializare | -Manopere | -Ore | -Venit | +|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mecanic | +Specializare | +Manopere | +Ore | +Venit |
|---|---|---|---|---|
| {{ $r['name'] }} | -{{ $r['specialization'] ?? '—' }} | -{{ $r['works'] }} | -{{ number_format($r['hours'], 1) }} | -{{ number_format($r['revenue'], 2, '.', ' ') }} | +
| {{ $r['name'] }} | +{{ $r['specialization'] ?? '—' }} | +{{ $r['works'] }} | +{{ number_format($r['hours'], 1) }} | +{{ number_format($r['revenue'], 2, '.', ' ') }} |
| Niciun mecanic activ. | ||||
| Niciun mecanic activ. | ||||
| Manoperă | -Nr. | -Ore total | -Venit | +||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Manoperă | +Nr. | +Ore total | +Venit |
|---|---|---|---|
| {{ $r->name }} | -{{ $r->cnt }} | -{{ number_format((float)$r->hours, 1) }} | -{{ number_format((float)$r->revenue, 2, '.', ' ') }} | +
| {{ $r->name }} | +{{ $r->cnt }} | +{{ number_format((float)$r->hours, 1) }} | +{{ number_format((float)$r->revenue, 2, '.', ' ') }} |
| Nicio manoperă efectuată. | |||
| Nicio manoperă efectuată. | |||
| Piesă | Cant. | Venit | Marjă |
|---|---|---|---|
| Piesă | Cant. | Venit | Marjă |
|---|---|---|---|
| {{ $r->name }} {{ $r->brand }} | -{{ number_format((float)$r->qty, 2) }} | -{{ number_format((float)$r->revenue, 2, '.', ' ') }} | -{{ number_format((float)$r->margin, 2, '.', ' ') }} | +
| {{ $r->name }} {{ $r->brand }} | +{{ number_format((float)$r->qty, 2) }} | +{{ number_format((float)$r->revenue, 2, '.', ' ') }} | +{{ number_format((float)$r->margin, 2, '.', ' ') }} |
| Nicio piesă montată. | |||
| Nicio piesă montată. | |||
| Piesă | Stoc | Min. |
|---|---|---|
| Piesă | Stoc | Min. |
|---|---|---|
| {{ $p->name }} | -{{ $p->qty }} | -{{ $p->min_qty }} | +
| {{ $p->name }} | +{{ $p->qty }} | +{{ $p->min_qty }} |
| Toate piesele sunt în stoc. | ||
| Toate piesele sunt în stoc. | ||
| {{ \App\Models\Tenant\Lead::SOURCES[$row->source] ?? ($row->source ?? '—') }} | -{{ $row->cnt }} | -
| {{ \App\Models\Tenant\Lead::SOURCES[$row->source] ?? ($row->source ?? '—') }} | +{{ $row->cnt }} | +
| Niciun lead. | |