@extends('layouts.sash') @section('title', 'Walk-In Details') @section('content')

Token

{{ $walkIn->token_no }}

{{ $walkIn->customer?->display_name ?? $walkIn->customer_name ?? 'Walk-in' }} @if($walkIn->mobile) {{ $walkIn->mobile }} @endif

Branch

{{ $walkIn->branch?->name ?? '—' }}

{{ ucfirst(str_replace('_', ' ', $walkIn->status)) }}

Requested services
{{ $walkIn->requested_service_summary ?? '—' }}
Preferred staff
{{ $walkIn->preferredStaff?->full_name ?? 'Any available' }}
Estimated wait
{{ $walkIn->estimated_wait_minutes !== null ? $walkIn->estimated_wait_minutes . ' min' : '—' }}
Notes
{{ $walkIn->notes ?? '—' }}
@if($walkIn->status !== 'converted')

Convert to Appointment

@if(!$walkIn->customer_id)

Link this walk-in to an existing customer before converting.

@else
@csrf
@php $branchServices = \App\Models\Service::where('status', 'active') ->when($walkIn->branch_id, fn ($q) => $q->where('branch_id', $walkIn->branch_id)->orWhereNull('branch_id')) ->orderBy('name') ->get(); $selected = old('service_ids', []); @endphp
@foreach($branchServices as $service) @endforeach
@endif
@else
This walk-in has been converted to an appointment. @if($walkIn->convertedAppointment) View appointment @endif
@endif
@endsection