@extends('admin.layout')
@section('title', 'Job '.$j->ref)
@section('content')
@include('admin.jobs._tabs', ['on' => 'jobs'])
{{ $j->ref }} {{ $j->statusLabel() }}
{{ $j->typeLabel() }}
{{ $j->customer_name }}
{{ $j->phone }}@if ($j->email)
{{ $j->email }}@endif
{{ $j->address }}, {{ $j->state }}
Preferred: {{ $j->preferred_date ?: 'no date given' }} ({{ $j->windowLabel() }})
@if ($j->notes)Customer notes: {!! nl2br(e($j->notes)) !!}
@endif
@if ($order)Order: @can('orders.view'){{ $order->ref }}@else{{ $order->ref }}@endcan
@endif
@if ($j->tech_notes)Technician notes: {!! nl2br(e($j->tech_notes)) !!}
@endif
Message customer on WhatsApp
History
@foreach ($events as $e)- {{ $e->getRawOriginal('created_at') }} {{ $e->event }} ({{ $e->actor }})
@endforeach
Technician
@if ($cur)
Assigned to {{ $cur->name }} ({{ $cur->phone }})@if ($cur->qualifications || $cur->profile) · profile@endif
Offer: {{ $j->tech_pay !== null ? naira($j->tech_pay) : 'none' }}@if ($j->distance_km !== null) · {{ $j->distance_km }} km @endif
@if ($j->agreed_pay !== null) · Agreed {{ naira($j->agreed_pay) }}@endif
@can('jobs.assign')
@if ($j->status === 'assigned' && $j->tech_counter !== null)
{{ $cur->name }} proposes {{ naira($j->tech_counter) }} instead of {{ naira($j->tech_pay) }}.
Or change the offer below and the technician will be asked again.
@endif
@if (in_array($j->status, ['accepted', 'in_progress'], true))
@endif
@if (in_array($j->status, ['assigned', 'accepted'], true))
Review or update the request
@endif
@endcan
@endif
@can('jobs.assign')
@if (in_array($j->status, ['requested', 'assigned', 'accepted'], true))
{{ $cur ? 'Reassign to someone else' : 'Assign' }}
@endif
@else
You can view this job but not assign technicians.
@endcan
@if ($link)
Private link
Send on WhatsApp
@endif
@can('jobs.manage')
Update
@endcan
@endsection