@extends('layouts.app') @section('title', $t->display_name) @section('heading', 'Appraisal: '.$t->display_name) @section('content') @php $closed = $t->deal || in_array($t->status, ['accepted', 'rejected']); $kes = fn ($v) => 'KSh '.number_format((float) $v, 2); @endphp

{{ ['rejected' => 'Declined'][$t->status] ?? ucfirst($t->status) }} {{ $t->customer->name }} @if ($t->condition_grade)· Grade {{ $t->condition_grade }} ({{ config('deals.grades')[$t->condition_grade] }})@endif @if ($t->deal)· used on {{ $t->deal->deal_no }}@endif

Photos ({{ $t->photos->count() }}/{{ config('deals.max_photos') }})

    @forelse ($t->photos as $p)
  • {{ config('deals.photo_angles')[$p->angle] ?? $p->angle }}{{ $p->caption ? ': '.$p->caption : '' }}

    {{ config('deals.photo_angles')[$p->angle] ?? $p->angle }}

    @if ($p->caption)

    {{ $p->caption }}

    @endif @can('tradeins.manage') @unless ($closed)
    @csrf @method('DELETE')
    @endunless @endcan
  • @empty
  • No photos yet. Take front, rear, both sides, interior, dashboard, engine bay, tyres and any damage.
  • @endforelse
@can('tradeins.manage') @unless ($closed)
@csrf
Location data is removed from photos when they are saved.
@endunless @endcan
@can('tradeins.manage') @unless ($closed)
@csrf @method('PUT') @include('trade-ins._fields', ['tradeIn' => $t])
@endunless @endcan @if ($closed || ! auth()->user()->can('tradeins.manage'))

Details

@foreach (['Plate' => $t->registration_no, 'VIN' => $t->vin, 'Mileage' => number_format($t->mileage).' '.$t->mileage_unit, 'Color' => $t->color, 'Logbook seen' => $t->logbook_seen ? 'Yes' : 'No', 'Loan outstanding' => $t->has_outstanding_finance ? $kes($t->outstanding_balance).' · '.$t->lender : 'None'] as $l => $v)
{{ $l }}
{{ $v ?: 'Not recorded' }}
@endforeach
@if ($t->condition_scores)
    @foreach (config('deals.condition_areas') as $k => $l)
  • {{ $l }}: {{ $t->condition_scores[$k] ?? '–' }}/5
  • @endforeach
@endif @if ($t->condition_notes)

{{ $t->condition_notes }}

@endif
@endif
@endsection