@extends('backend.layout.main') @push('css') @endpush @section('content') @if(session()->has('message'))
{{ __('db.customer') }}: {{ optional($job->customer)->name ?? 'N/A' }}
{{ __('db.Phone') }}: {{ optional($job->customer)->phone ?? 'N/A' }}
{{ __('db.Warehouse') }}: {{ optional($job->warehouse)->name ?? 'N/A' }}
{{ __('db.technician') }}: {{ optional($job->assignedTo)->name ?? __('db.unassigned') }}
{{ __('db.date_created') }}: {{ date(config('date_format'), strtotime($job->created_at)) }}
{{ __('db.expected_delivery') }}: {{ $job->expected_delivery_date ? $job->expected_delivery_date->format(config('date_format')) : 'N/A' }}
@if($job->delivery_date){{ __('db.delivered_on') }}: {{ $job->delivery_date->format(config('date_format')) }}
@endif{{ __('db.Created By') }}: {{ optional($job->createdBy)->name }}
{{ __('db.Description') }}: {{ $job->description }}
@endif @if($job->note){{ __('db.Note') }}: {{ $job->note }}
@endif| {{ __('db.device_type') }} | {{ ucfirst($job->device->device_type) }} |
|---|---|
| {{ __('db.Brand') }} | {{ $job->device->brand ?? '—' }} |
| {{ __('db.model') }} | {{ $job->device->model ?? '—' }} |
| {{ __('db.serial_number') }} | {{ $job->device->serial_number ?? '—' }} |
| {{ __('db.imei') }} | {{ $job->device->imei ?? '—' }} |
| {{ __('db.password_hint') }} | {{ $job->device->password_hint ?? '—' }} |
|---|---|
| {{ __('db.accessories') }} | {{ $job->device->accessories ?? '—' }} |
{{ __('db.issue_reported') }}:
{{ $job->device->issue_reported }}
{{ __('db.condition_on_arrival') }}:
{{ $job->device->condition_notes }}
| {{ __('db.vehicle_type') }} | {{ ucfirst(str_replace('_', ' ', $job->vehicle->vehicle_type)) }} |
|---|---|
| {{ __('db.Brand') }} | {{ $job->vehicle->brand ?? '—' }} |
| {{ __('db.model') }} | {{ $job->vehicle->model ?? '—' }} |
| {{ __('db.year') }} | {{ $job->vehicle->year ?? '—' }} |
| {{ __('db.registration_no') }} | {{ $job->vehicle->registration_no ?? '—' }} |
| {{ __('db.engine_no') }} | {{ $job->vehicle->engine_no ?? '—' }} |
|---|---|
| {{ __('db.chassis_no') }} | {{ $job->vehicle->chassis_no ?? '—' }} |
| {{ __('db.mileage') }} | {{ $job->vehicle->mileage ? number_format($job->vehicle->mileage) . ' km' : '—' }} |
| {{ __('db.fuel_level') }} | {{ $job->vehicle->fuel_level ?? '—' }} |
{{ __('db.condition_notes') }}:
{{ $job->vehicle->condition_notes }}
| # | {{ __('db.product') }} | {{ __('db.qty') }} | {{ __('db.Unit Price') }} | {{ __('db.Total') }} |
|---|---|---|---|---|
| {{ $i + 1 }} | {{ optional($item->product)->name }} [{{ optional($item->product)->code }}] | {{ $item->quantity }} | {{ number_format($item->unit_price, config('decimal')) }} | {{ number_format($item->total, config('decimal')) }} |
| {{ __('db.parts_total') }}: | {{ number_format($job->items->sum('total'), config('decimal')) }} | |||
| {{ __('db.service_charge') }}: | {{ number_format($job->service_charge, config('decimal')) }} | |||
| {{ __('db.Discount') }}: | {{ number_format($job->discount, config('decimal')) }} | |||
| {{ __('db.Tax') }}: | {{ number_format($job->tax, config('decimal')) }} | |||
| {{ __('db.grand total') }}: | {{ number_format($job->total_amount, config('decimal')) }} | |||
| {{ __('db.Paid Amount') }}: | {{ number_format($job->paid_amount, config('decimal')) }} | |||
| {{ __('db.Due') }}: | {{ number_format($job->due_amount, config('decimal')) }} | |||
{{ __('db.no_parts_used') }}
@endif| {{ __('db.parts_total') }} | {{ number_format($job->items->sum('total'), config('decimal')) }} |
| {{ __('db.service_charge') }} | {{ number_format($job->service_charge, config('decimal')) }} |
| {{ __('db.Discount') }} | - {{ number_format($job->discount, config('decimal')) }} |
| {{ __('db.Tax') }} | {{ number_format($job->tax, config('decimal')) }} |
| {{ __('db.grand total') }} | {{ number_format($job->total_amount, config('decimal')) }} |
| {{ __('db.Paid') }} | {{ number_format($job->paid_amount, config('decimal')) }} |
| {{ __('db.Due') }} | {{ number_format($job->due_amount, config('decimal')) }} |
{{ __('db.no_updates_yet') }}
@endif