@extends('admin.layouts.admin') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@if(isset($id))
@else @endif @csrf
{{-- Category --}}
@php $cat_id=0; @endphp @if(isset($appointment) && $appointment->service) @php $cat_id=$appointment->service->cat_id; @endphp @endif
{{-- Service --}}
@php $service_id=0; @endphp @if(isset($appointment)) @php $service_id=$appointment->service_id; @endphp @endif
{{-- Staff --}}
@php $staff_id=0; @endphp @if(isset($appointment) && $appointment->booked_appointment) @php $staff_id=$appointment->booked_appointment->user_id; @endphp @endif
{{-- Date --}}
@if(isset($appointment) && $appointment->date) @php $date = $appointment->date; @endphp @endif
{{-- Slots --}}
@php $slot_id=0; @endphp @if(isset($appointment) && $appointment->slot_id) @php $slot_id=$appointment->slot_id; @endphp @endif
{{-- Customers --}}
@php $user_id=0; @endphp @if(isset($appointment) && $appointment->user_id) @php $user_id=$appointment->user_id; @endphp @endif
@php $status=''; @endphp @if(isset($appointment) && $appointment->status) @php $status=$appointment->status; @endphp @endif
New Customer
@csrf
@endsection