@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:') }}