{{-- ── WORKS TAB ── --}}
@if ($wo->works->isNotEmpty())
| # |
{{ __('Manoperă') }} |
{{ __('Ore') }} |
{{ __('Mecanic') }} |
{{ __('Preț/h') }} |
{{ __('Total') }} |
{{ __('Status') }} |
@foreach ($wo->works as $i => $w)
| {{ $i + 1 }} |
{{ $w->labor?->label() ?: $w->name }} |
{{ rtrim(rtrim(number_format($w->hours, 2), '0'), '.') }} |
{{ $w->master?->name ?? '—' }} |
{{ number_format($w->price_per_hour, 2, '.', ' ') }} |
{{ number_format($w->total, 2, '.', ' ') }} |
{{ __(\App\Models\Tenant\WorkOrderWork::STATUSES[$w->status] ?? $w->status) }}
|
@endforeach
@else
{{ __('Nicio manoperă efectuată.') }}
@endif
{{-- ── PARTS TAB ── --}}
@if ($wo->parts->isNotEmpty())
| {{ __('Cod') }} |
{{ __('Denumire') }} |
{{ __('Brand') }} |
{{ __('Cant.') }} |
{{ __('Preț') }} |
{{ __('Total') }} |
{{ __('Status') }} |
@foreach ($wo->parts as $p)
| {{ $p->article ?? '—' }} |
{{ $p->name }} |
{{ $p->brand ?? '—' }} |
{{ rtrim(rtrim(number_format($p->qty, 2), '0'), '.') }} {{ $p->unitLabel() ?: '' }} |
{{ number_format($p->sell_price, 2, '.', ' ') }} |
{{ number_format($p->total, 2, '.', ' ') }} |
{{ __(\App\Models\Tenant\WorkOrderPart::STATUSES[$p->status] ?? $p->status) }}
|
@endforeach
@else
{{ __('Nicio piesă montată.') }}
@endif
{{-- ── DIAGNOSTIC TAB ── --}}
{{ __('Plângere client') }}
{{ $wo->complaint ?: '—' }}
{{ __('Diagnostic') }}
{{ $wo->diagnosis ?: '—' }}
{{-- ── PHOTOS TAB ── --}}
@php $photos = $wo->getMedia('photos'); @endphp
@if ($photos->isNotEmpty())
@foreach ($photos as $ph)
@endforeach
@else
{{ __('Nicio fotografie') }}
@endif
{{-- ── DOCUMENTS TAB ── --}}
{{ __('Nicio factură emisă încă') }}
{{-- ── NOTES TAB ── --}}
{{ $wo->notes ?: __('Nicio notă internă.') }}