@extends('layouts.app') @section('content') @php $resto = \Illuminate\Support\Facades\Auth::user()->restaurants; $lang = $resto->default_lang; app()->setLocale($lang); if(session('app_lang') !==null){ $lang = session('app_lang'); app()->setLocale($lang); } @endphp
{{--

{{__('label.outlets')}}

--}}
@csrf

{{__('label.delivery')}}

{{__('label.customers_can_request_orders_to_be_delivered')}}

{{__('label.recieve_your_payouts')}}

{{__('label.fill_up_your_bank_details_here_so_we_can_transfer_your_money_learn_more_about_payout_cycles_here')}} {{__('label.here')}}

is_delivery=="1") class="active p-0" @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\Models\BranchHours::where('branch_id',$outlet->id)->where('hours_for','delivery')->get(); $day_exists = []; @endphp

{{__('label.day')}}

{{__('label.from')}}

{{__('label.to')}}

@if(isset($existing_days) && $existing_days->count() > 0) @foreach($existing_days as $d)

{{__('label.day')}}:

@if(!in_array($d->day_name,$day_exists)){{__('label.'.trim(strtolower($d->day_name)))}}@endif
status=="close") style="display: none" @endif >

{{__('label.from')}}:

status=="close") style="display: none" @endif>

{{__('label.to')}}:

status=="close") style="display: none" @endif> @if(!in_array($d->day_name,$day_exists)) {{__('label.add_hours')}} @endif @if(in_array($d->day_name,$day_exists)) {{__('label.remove_hours')}} @endif
@if(!in_array($d->day_name,$day_exists)) @php $bstatus=($d->status=="open")? 'active' :''; $bflag=($d->status=="open")? true :false; $bclass=($d->status=="open")?'success':'secondary'; @endphp
status=="open") checked @endif />
@endif
@php $day_exists[] = $d->day_name; @endphp @endforeach @else @foreach($days as $d)
{{__('label.'.trim(strtolower($d)))}}
@endforeach @endif

{{__('label.operation_settings')}}

{{__('label.set_the_default_time_needed_for_preparing_and_delivering_orders')}}

(How much time it will take to Prepare and Deliver order after receiving order).
@php $preparation_delivery_type = isset($features)?$features->preparation_delivery_type:""; @endphp

{{__('label.estimated_time_settings')}}

@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
@endsection @section('js') @endsection