@extends('adminlte::page') @section('title', 'Create User') @section('content_header')

Add User

@stop @section('content')
@if (session()->has('success'))
{!! session()->get('success') !!}
@endif @if (count($errors) > 0)
Whoops! There were some problems with your input.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@error('name') {{ $message }} @enderror
@error('email') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror
@error('password') {{ $message }} @enderror
@error('password_confirmation') {{ $message }} @enderror
@error('roles') {{ $message }} @enderror

Only For Employees

Fill these details if adding an employee only
Link employees to services they are assigned to @error('service') {{ $message }} @enderror
Create booking slots based on your preferred time duration. @php $steps = ['10', '15', '20', '30', '45', '60']; $selectedStep = old('slot_duration'); // Get the selected step value from old input @endphp @error('slot_duration') {{ $message }} @enderror
Break between one to another appointment @php $breaks = ['5', '10', '15', '20', '25', '30']; $selectedBreak = old('break_duration'); // Get the selected step value from old input @endphp @error('break_duration') {{ $message }} @enderror

Set Availibity - For Employee

Select days and timings, with the option to add multiple time slots in a day, e.g., 9 AM–12 PM and 4 PM–8 PM
@foreach ($days as $day)
From:
To:
Add More
@if (old('days.' . $day)) @foreach (old('days.' . $day) as $index => $time) @if ($index > 1 && $index % 2 == 0)
From:
To:
Remove
@endif @endforeach @endif @endforeach
@stop @section('css') @stop @section('js') @stop