@php $themeColor = $tenant->settings['theme_color'] ?? '#3B82F6'; $logoUrl = method_exists($tenant, 'getLogoUrl') ? $tenant->getLogoUrl() : null; $faviconUrl = method_exists($tenant, 'getFaviconUrl') ? $tenant->getFaviconUrl() : null; $statuses = App\Models\Tenant\WorkOrder::STATUSES; $flow = ['new', 'diagnosis', 'agreement', 'approved', 'in_work', 'awaiting_parts', 'ready', 'done']; $currentIdx = array_search($wo->status, $flow, true); @endphp @if ($faviconUrl) @endif
@if ($logoUrl)@endif

{{ $tenant->display_name ?? $tenant->name }}

Fișa #{{ $wo->number }}
@if (isset($approvalStatus) && $approvalStatus)
{{ $approvalStatus['message'] }}
@endif @if ($pendingWorks->isNotEmpty() || $pendingParts->isNotEmpty())

⚠ Necesită aprobarea ta

Am descoperit lucrări suplimentare. Te rugăm să decizi mai jos.

@foreach ($pendingWorks as $w)
{{ $w->name }}
{{ rtrim(rtrim(number_format($w->hours, 2), '0'), '.') }} ore · {{ number_format($w->total, 0, '.', ' ') }} MDL
@csrf
@endforeach @foreach ($pendingParts as $p)
{{ $p->name }} @if ($p->article) · {{ $p->article }}@endif
{{ rtrim(rtrim(number_format($p->qty, 2), '0'), '.') }} {{ $p->unit ?? 'buc' }} · {{ number_format($p->total, 0, '.', ' ') }} MDL
@csrf
@endforeach
@endif
{{ $statuses[$wo->status] ?? $wo->status }} @if ($wo->eta_at && in_array($wo->status, ['in_work', 'awaiting_parts', 'approved', 'diagnosis'], true))

Gata estimat: {{ $wo->eta_at->isoFormat('D MMM YYYY, HH:mm') }}

@endif

Detalii

@if ($wo->vehicle)
Auto {{ trim($wo->vehicle->make . ' ' . $wo->vehicle->model) }} @if ($wo->vehicle->plate) · {{ $wo->vehicle->plate }} @endif
@endif @if ($wo->mileage_in)
Kilometraj{{ number_format($wo->mileage_in, 0, '.', ' ') }} km
@endif
Deschis{{ $wo->opened_at?->isoFormat('D MMM YYYY') }}
@if ($wo->master)
Maistru{{ $wo->master->name }}
@endif

Etape

@if ($wo->complaint)

Ce ne-ai cerut

{{ $wo->complaint }}

@endif @if ($wo->recommendations)

Recomandări

{{ $wo->recommendations }}
@endif @if ($photos->count())

Fotografii

@foreach ($photos as $p) @endforeach
@endif @if ((float) $wo->total > 0)
Total {{ number_format((float) $wo->total, 2, '.', ' ') }} {{ $tenant->settings['currency'] ?? 'MDL' }}
@endif