@if (!empty($logoData)) logo
{{ $company->display_name ?? $company->name }}
@else
{{ $company->display_name ?? $company->name }}
@endif @if ($company->city)
{{ $company->city }}
@endif @if ($company->phone)
📞 {{ $company->phone }}
@endif @if ($company->email)
✉ {{ $company->email }}
@endif
FIȘĂ DE LUCRU
Nr.: {{ $wo->number }}
Data deschiderii: {{ $wo->opened_at?->format('d.m.Y') }}
@if ($wo->closed_at)
Data închiderii: {{ $wo->closed_at->format('d.m.Y') }}
@endif
Status: {{ \App\Models\Tenant\WorkOrder::STATUSES[$wo->status] ?? $wo->status }}

Client

Nume: {{ $wo->client?->name ?? '—' }}
Telefon: {{ $wo->client?->phone ?? '—' }}
@if ($wo->client?->email)
Email: {{ $wo->client->email }}
@endif

Auto

Marca/Model: {{ $wo->vehicle?->make }} {{ $wo->vehicle?->model }} {{ $wo->vehicle?->year }}
Nr.: {{ $wo->vehicle?->plate ?? '—' }}
@if ($wo->vehicle?->vin)
VIN: {{ $wo->vehicle->vin }}
@endif
Km la intrare: {{ $wo->mileage_in ? number_format($wo->mileage_in, 0, '.', ' ') : '—' }}
@if ($wo->mileage_out)
Km la ieșire: {{ number_format($wo->mileage_out, 0, '.', ' ') }}
@endif
@if ($wo->complaint || $wo->diagnosis)
@if ($wo->complaint)

Plângere client

{{ $wo->complaint }}
@endif @if ($wo->diagnosis)

Diagnostic

{{ $wo->diagnosis }}
@endif
@endif @if ($wo->works->isNotEmpty())

Manopere

@foreach ($wo->works as $w) @endforeach
Denumire Ore Preț/h Total
{{ $w->name }}@if ($w->master?->name) — {{ $w->master->name }}@endif {{ number_format((float) $w->hours, 2) }} {{ number_format((float) $w->price_per_hour, 2, '.', ' ') }} {{ number_format((float) $w->total, 2, '.', ' ') }}
Subtotal manopere: {{ number_format((float) $worksTotal, 2, '.', ' ') }} {{ $currency }}
@endif @if ($wo->parts->isNotEmpty())

Piese

@foreach ($wo->parts as $p) @endforeach
Denumire Cod Cant. Preț Total
{{ $p->name }}@if ($p->brand) ({{ $p->brand }})@endif {{ $p->article ?? '—' }} {{ number_format((float) $p->qty, 2) }} {{ $p->unit }} {{ number_format((float) $p->sell_price, 2, '.', ' ') }} {{ number_format((float) $p->total, 2, '.', ' ') }}
Subtotal piese: {{ number_format((float) $partsTotal, 2, '.', ' ') }} {{ $currency }}
@endif
@if ($wo->discount_pct > 0)
Subtotal: {{ number_format((float) ($worksTotal + $partsTotal), 2, '.', ' ') }} {{ $currency }}
Discount: -{{ $wo->discount_pct }}%
@endif
TOTAL DE PLATĂ: {{ number_format((float) $wo->total, 2, '.', ' ') }} {{ $currency }}
@if ($paid > 0)
Achitat: {{ number_format($paid, 2, '.', ' ') }} {{ $currency }}
Rest de achitat: {{ number_format($balance, 2, '.', ' ') }} {{ $currency }}
@endif
@if ($wo->recommendations)

⚠ Recomandări

{{ $wo->recommendations }}
@endif
Client (nume, semnătură):
Maistru / Recepție: