@extends('layouts.app') @section('title', $appointment->appointment_number) @section('eyebrow', 'RANDEVU DETAYI') @section('heading', $appointment->appointment_number) @section('top-actions') Listeye Dön Yol Tarifi @endsection @section('content')
{{ $appointment->type === 'emergency' ? 'ACİL ÇAĞRI' : 'PLANLI RANDEVU' }}

{{ $appointment->service->name }}

{{ $appointment->scheduled_at->locale('tr')->translatedFormat('d F Y l · H:i') }}

{{ $appointment->status->label() }}
ARAÇ{{ $appointment->vehicle->plate }}{{ trim($appointment->vehicle->brand.' '.$appointment->vehicle->model.' '.$appointment->vehicle->year) }}
ŞASİ NUMARASI (VIN){{ $appointment->vehicle->vin ?: 'Henüz girilmedi' }}{{ $appointment->vehicle->mileage ? number_format($appointment->vehicle->mileage, 0, ',', '.').' km' : 'Kilometre bilgisi yok' }}
HİZMET ADRESİ{{ $appointment->address }}{{ collect([$appointment->district, $appointment->city])->filter()->join(' / ') }}
@if($appointment->customer_note || $appointment->internal_note)
@if($appointment->customer_note)
Müşteri notu

{{ $appointment->customer_note }}

@endif @if($appointment->internal_note)
Operasyon notu

{{ $appointment->internal_note }}

@endif
@endif
Hizmet₺{{ number_format((float)$appointment->service_price, 2, ',', '.') }} Yol ücreti₺{{ number_format((float)$appointment->travel_fee, 2, ',', '.') }} İndirim−₺{{ number_format((float)$appointment->discount, 2, ',', '.') }} Toplam₺{{ number_format((float)$appointment->total, 2, ',', '.') }}
@endsection