@extends('dashboard.layouts.app') @section('title', __('dashboard.Customer Details')) @section('page_heading', $customer->name) @section('breadcrumb') @endsection @section('content')

{{ __('dashboard.Customer Details') }}

{{ __('dashboard.Name') }}: {{ $customer->name }}

{{ __('dashboard.Phone') }}: {{ $customer->phone }}

{{ __('dashboard.Address') }}: {{ $customer->address }}

{{ __('dashboard.Governorate') }}: {{ $customer->governorate }}

{{ __('dashboard.Gender') }}: {{ $customer->gender == 'male' ? __('dashboard.Male') : __('dashboard.Female') }}

{{ __('dashboard.Reservations') }}

@if ($customer->reservations->isNotEmpty()) @foreach ($customer->reservations as $reservation) @endforeach
{{ __('dashboard.ID') }} {{ __('dashboard.Product') }} {{ __('dashboard.Event Date') }} {{ __('dashboard.Price') }} {{ __('dashboard.Status') }}
{{ $reservation->id }} {{ $reservation->product->name }} {{ $reservation->event_date }} {{ $reservation->price }} {{ $reservation->status }}
@else

{{ __('dashboard.No reservations found for this customer.') }}

@endif

{{ __('dashboard.Sales') }}

@if ($customer->sales->isNotEmpty()) @foreach ($customer->sales as $sale) @endforeach
{{ __('dashboard.ID') }} {{ __('dashboard.Total') }} {{ __('dashboard.Created At') }}
{{ $sale->id }} {{ $sale->final_total }} {{ $sale->created_at->format('Y-m-d H:i') }}
@else

{{ __('dashboard.No sales found for this customer.') }}

@endif
@endsection