@extends('layouts.app') @section('title', __('Book Appointment')) @section('content')

{{ __('Book Your Appointment') }}

{{ __('Complete the steps below to book your appointment with') }} {{ $service->provider->name }}

{{ __('Date & Time') }}
{{ __('Your Details') }}
{{ __('Payment') }}
@if($currentStep == 1)
{{ __('Select Date & Time') }}
{{ $service->name }}
{{ $service->name }}
@for($i = 1; $i <= 5; $i++) @endfor
{{ $service->rating }} ({{ $service->reviews_count }})
{{ $service->duration }} {{ __('min') }} {{ $service->price_formatted }}
@if(isset($timeSlots) && count($timeSlots) > 0) @foreach($timeSlots as $slot)
@endforeach @else
{{ __('Please select a date to view available time slots.') }}
@endif
@csrf
{{ __('Back to Service') }}
@endif @if($currentStep == 2)
{{ __('Your Details') }}
@csrf
{{ __('Booking Summary') }}

{{ __('Service') }}: {{ $service->name }}

{{ __('Provider') }}: {{ $service->provider->name }}

{{ __('Duration') }}: {{ $service->duration }} {{ __('minutes') }}

{{ __('Date') }}: {{ \Carbon\Carbon::parse($selectedDate)->format('F j, Y') }}

{{ __('Time') }}: {{ $selectedTime }}

{{ __('Price') }}: {{ $service->price_formatted }}

{{ __('Personal Information') }}
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('terms')
{{ $message }}
@enderror
{{ __('Back') }}
@endif @if($currentStep == 3)
{{ __('Payment') }}
{{ __('Booking Summary') }}

{{ __('Service') }}: {{ $booking->service->name }}

{{ __('Provider') }}: {{ $booking->service->provider->name }}

{{ __('Duration') }}: {{ $booking->service->duration }} {{ __('minutes') }}

{{ __('Date') }}: {{ \Carbon\Carbon::parse($booking->appointment_date)->format('F j, Y') }}

{{ __('Time') }}: {{ $booking->appointment_time }}

{{ __('Customer') }}: {{ $booking->customer_name }}

{{ __('Payment Details') }}
{{ __('Service Price') }} {{ $booking->service->price_formatted }}
@if($booking->discount_amount > 0)
{{ __('Discount') }} -{{ $booking->discount_formatted }}
@endif @if($booking->tax_amount > 0)
{{ __('Tax') }} {{ $booking->tax_formatted }}
@endif
{{ __('Total Amount') }} {{ $booking->total_amount_formatted }}
{{ __('Select Payment Method') }}
@csrf

{{ __('You will be redirected to PayPal to complete your payment.') }}

@csrf
@if($booking->service->provider->accepts_cash)
{{ __('You will pay directly to the service provider at the time of your appointment.') }}
@csrf
@endif
@endif
@endsection @section('scripts') @endsection