@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

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) · @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) }}.

@csrf

Or change the offer below and the technician will be asked again.

@endif @if (in_array($j->status, ['accepted', 'in_progress'], true))
@csrf
@endif @if (in_array($j->status, ['assigned', 'accepted'], true))
Review or update the request
@csrf

Changing the amount asks the technician to accept again.

@endif @endcan @endif @can('jobs.assign') @if (in_array($j->status, ['requested', 'assigned', 'accepted'], true))

{{ $cur ? 'Reassign to someone else' : 'Assign' }}

@csrf @if ($techs->isEmpty())

No technicians yet. Add one.

@endif
Send the job by
@endif @else

You can view this job but not assign technicians.

@endcan @if ($link)

Private link

Send on WhatsApp

@csrf
@endif @can('jobs.manage')

Update

@csrf
@endcan
@endsection