File: /var/www/admin.javaapp.co.uk/resources/views/cafe/set-cafe-hours.blade.php
<form id="set_cafe_hours_from" data-action="{{ $setHoursUrl }}">
@csrf
@method('PUT')
<div class="modal-body pb-0">
@foreach ($timing as $time)
<div class="form-group d-flex">
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-4 mx-0 px-0 form-group">
<label class="form-label d-flex">
<svg class="mr-2 svg-cafe-hours" width="25" height="24" viewBox="0 0 25 24"
fill="none" stroke="currentColor" stroke-width="2">
<path
d="M12.0444 22C17.5673 22 22.0444 17.5228 22.0444 12C22.0444 6.47715 17.5673 2 12.0444 2C6.52159 2 2.04443 6.47715 2.04443 12C2.04443 17.5228 6.52159 22 12.0444 22Z"
stroke-linecap="round" stroke-linejoin="round" />
<path d="M12.0444 6V12L16.0444 14" stroke-linecap="round"
stroke-linejoin="round" />
</svg>
<span>{{ $days[$time->day] }}</span>
</label>
</div>
<div class="col-xl-3 col-lg-3 col-md-3 col-sm-3 form-group">
<input type="text" class="form-control px-3 open_time"
name="cafe[{{ $time->day }}][open_time]" placeholder=""
value="{{ $time->open_time != '' ? $time->open_time : '' }}">
</div>
<div class="col-xl-1 col-lg-1 col-md-1 col-sm-1 mx-0 px-0 text-center form-group">
<label class="form-label">{{ __('common.to') }}</label>
</div>
<div class="col-xl-3 col-lg-3 col-md-3 col-sm-3 form-group">
<input type="text" class="form-control px-3 close_time"
name="cafe[{{ $time->day }}][close_time]" placeholder=""
value="{{ $time->close_time != '' ? $time->close_time : '' }}">
</div>
<div class="col-xl-1 col-lg-1 col-md-1 col-sm-1 mx-0 px-0 form-group">
<label class="switch s-coffee-medium-light">
<input type="checkbox" class="is_active" name="cafe[{{ $time->day }}][is_active]"
value="1" {{ $time->is_active == 1 ? 'checked=' : '' }}>
<span class="slider round"></span>
</label>
</div>
</div>
@endforeach
</div>
<div class="modal-footer justify-content-start border-remove-model">
<button type="button" id="set_cafe_hours" class="btn btn-coffee-dark">{{ __('common.Save') }}</button>
</div>
</form>