is_delivery=="1") class="active" @endif>
{{__('label.payment_methods')}}
{{__('label.select_all_payment_methods_accepted_on_delivery')}}
@php
$payment_methods = [];
if(isset($features) && !empty($features->payment_methods)){
$payment_methods = explode(',',$features->payment_methods);
}
@endphp
{{__('label.opening_hours')}}
{{__('label.select_all_payment_methods_accepted_on_delivery')}}
@php
$days = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];
$existing_days = \App\BranchHours::where('branch_id',$outlet->id)->where('hours_for','delivery')->get();
$day_exists = [];
@endphp
@if(isset($existing_days) && $existing_days->count() > 0)
@foreach($existing_days as $d)
@if(!in_array($d->day_name,$day_exists)){!! ucwords($d->day_name) !!}@endif
@if(!in_array($d->day_name,$day_exists))
status=="open") checked @endif />
@endif
@php
$day_exists[] = $d->day_name;
@endphp
@endforeach
@else
@foreach($days as $d)
@endforeach
@endif
{{__('label.operation_settings')}}
{{__('label.set_the_default_time_needed_for_preparing_and_delivering_orders')}}
@php
$preparation_delivery_type = isset($features)?$features->preparation_delivery_type:"";
@endphp
{{__('label.estimated_time_settings')}}
{{__('label.set_the_estimated_time_needed_for_delivering-orders')}}
@php
$estimated_time = isset($features)?$features->estimated_time:"";
$time_from = $time_to = $time_type = "";
if($estimated_time!=""){
$time = explode(":",$estimated_time);
if(count($time) > 1){
$e_time = explode(' - ',$time[0]);
$time_from = isset($e_time[0])?$e_time[0]:0;
$time_to = isset($e_time[1])?$e_time[1]:0;
$time_type = $time[1];
}
}
@endphp