@extends('layouts.admin.app') @section('title', translate('Settings')) @section('content')
@php($config = \App\CentralLogics\Helpers::get_business_settings('maintenance_mode'))
{{ translate('messages.maintenance_mode') }}

{{ translate('*By turning on maintaince mode, all your app and customer side website will be off. Only admin panel and seller panel will be functional') }}

@csrf

{{translate('messages.general_info')}}

@php($name = \App\Models\BusinessSetting::where('key', 'business_name')->first())
@php($phone = \App\Models\BusinessSetting::where('key', 'phone')->first())
@php($email = \App\Models\BusinessSetting::where('key', 'email_address')->first())
@php($address = \App\Models\BusinessSetting::where('key', 'address')->first())
@php($footer_text = \App\Models\BusinessSetting::where('key', 'footer_text')->first())
@php($default_location = \App\Models\BusinessSetting::where('key', 'default_location')->first()) @php($default_location = $default_location->value ? json_decode($default_location->value, true) : 0)

{{translate('messages.business')}} {{translate('messages.info')}}

@php($logo = \App\Models\BusinessSetting::where('key', 'logo')->first()) @php($logo = $logo->value ?? '')
logo image
@php($icon = \App\Models\BusinessSetting::where('key', 'icon')->first()) @php($icon = $icon->value ?? '')
Fav icon
{{--
@php($site_direction = \App\Models\BusinessSetting::where('key', 'site_direction')->first()) @php($site_direction = $site_direction->value ?? '')
--}}
@php($currency_code = \App\Models\BusinessSetting::where('key', 'currency')->first())
@php($currency_symbol_position = \App\Models\BusinessSetting::where('key', 'currency_symbol_position')->first())
{{--
--}}
@php($tz = \App\Models\BusinessSetting::where('key', 'timezone')->first()) @php($tz = $tz ? $tz->value : 0)
@php($tf = \App\Models\BusinessSetting::where('key', 'timeformat')->first()) @php($tf = $tf ? $tf->value : '24')
@php($admin_commission = \App\Models\BusinessSetting::where('key', 'admin_commission')->first())
@php($digit_after_decimal_point = \App\Models\BusinessSetting::where('key', 'digit_after_decimal_point')->first())
@php($delivery_charge_comission = \App\Models\BusinessSetting::where('key', 'delivery_charge_comission')->first())

{{translate('messages.business')}} {{translate('messages.setting')}}

@php($ev = \App\Models\BusinessSetting::where('key', 'customer_verification')->first()) @php($ev = $ev ? $ev->value : 0)
@php($restaurant_self_registration = \App\Models\BusinessSetting::where('key', 'toggle_restaurant_registration')->first()) @php($restaurant_self_registration = $restaurant_self_registration ? $restaurant_self_registration->value : 0)
@php($dm_self_registration = \App\Models\BusinessSetting::where('key', 'toggle_dm_registration')->first()) @php($dm_self_registration = $dm_self_registration ? $dm_self_registration->value : 0)
@php($admin_order_notification = \App\Models\BusinessSetting::where('key', 'admin_order_notification')->first()) @php($admin_order_notification = $admin_order_notification ? $admin_order_notification->value : 0)
@php($schedule_order = \App\Models\BusinessSetting::where('key', 'schedule_order')->first()) @php($schedule_order = $schedule_order ? $schedule_order->value : 0)
@php($odc = \App\Models\BusinessSetting::where('key', 'order_delivery_verification')->first()) @php($odc = $odc ? $odc->value : 0)
@php($dm_tips_status = \App\Models\BusinessSetting::where('key', 'dm_tips_status')->first()) @php($dm_tips_status = $dm_tips_status ? $dm_tips_status->value : 'deliveryman')
@php($show_dm_earning = \App\Models\BusinessSetting::where('key', 'show_dm_earning')->first()) @php($show_dm_earning = $show_dm_earning ? $show_dm_earning->value : 0)
@php($vnv = \App\Models\BusinessSetting::where('key', 'toggle_veg_non_veg')->first()) @php($vnv = $vnv ? $vnv->value : 0)
@php($business_model = \App\Models\BusinessSetting::where('key', 'business_model')->first()) @php($business_model = $business_model->value ? json_decode($business_model->value, true) : 0)
@php($tax_included = \App\Models\BusinessSetting::where('key', 'tax_included')->first()) @php($tax_included = $tax_included ? $tax_included->value : 0)
@php($order_subscription = \App\Models\BusinessSetting::where('key', 'order_subscription')->first()) @php($order_subscription = $order_subscription ? $order_subscription->value : 0)
@php($order_confirmation_model = \App\Models\BusinessSetting::where('key', 'order_confirmation_model')->first()) @php($order_confirmation_model = $order_confirmation_model ? $order_confirmation_model->value : 'deliveryman')
@php($canceled_by_deliveryman = \App\Models\BusinessSetting::where('key', 'canceled_by_deliveryman')->first()) @php($canceled_by_deliveryman = $canceled_by_deliveryman ? $canceled_by_deliveryman->value : 0)
@php($canceled_by_restaurant = \App\Models\BusinessSetting::where('key', 'canceled_by_restaurant')->first()) @php($canceled_by_restaurant = $canceled_by_restaurant ? $canceled_by_restaurant->value : 0)
@php($schedule_order_slot_duration = \App\Models\BusinessSetting::where('key', 'schedule_order_slot_duration')->first())
@php($dm_maximum_orders = \App\Models\BusinessSetting::where('key', 'dm_maximum_orders')->first())
@php($free_delivery_over = \App\Models\BusinessSetting::where('key', 'free_delivery_over')->first())
value) ? '' : 'readonly' }}>
@php($dm_max_cash_in_hand = \App\Models\BusinessSetting::where('key', 'dm_max_cash_in_hand')->first())
{{--
@php($max_otp_hit = \App\Models\BusinessSetting::where('key', 'max_otp_hit')->first())
--}} {{--
@php($max_otp_hit_time = \App\Models\BusinessSetting::where('key', 'max_otp_hit_time')->first())
--}} {{--
@php($otp_interval_time = \App\Models\BusinessSetting::where('key', 'otp_interval_time')->first())
--}}
@endsection @push('script_2') @endpush