You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1723 lines
134 KiB

@extends('layouts.admin.app')
@section('title', translate('Settings'))
@section('content')
<div class="content container-fluid">
<!-- Page Header -->
<div class="page-header">
<div class="row align-items-center">
<div class="col-sm mb-2 mb-sm-0">
<h1 class="page-header-title text-capitalize">
<div class="card-header-icon d-inline-flex mr-2 img">
<img src="{{asset('/public/assets/admin/img/business.png')}}" alt="public">
</div>
<span>
{{ translate('messages.business') }}
{{ translate('messages.setup') }}
</span>
</h1>
</div>
</div>
</div>
<!-- End Page Header -->
<div class="row gx-2 gx-lg-3">
<div class="col-md-12 mb-3">
<div class="card">
<div class="card-body mb-3">
<div class="maintainance-mode-toggle-bar d-flex flex-wrap justify-content-between border blue-border rounded align-items-center">
@php($config = \App\CentralLogics\Helpers::get_business_settings('maintenance_mode'))
<h5 class="card-title text-capitalize mr-3 m-0 text--primary">
<span class="card-header-icon">
<i class="tio-settings-outlined"></i>
</span>
<span>
{{ translate('messages.maintenance_mode') }}
</span>
</h5>
<label class="switch m-0">
<input type="checkbox" class="status" onclick="maintenance_mode()"
{{ isset($config) && $config ? 'checked' : '' }}>
<span class="slider round"></span>
</label>
</div>
<p class="mt-2 mb-0">
{{ 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') }}
</p>
</div>
</div>
</div>
<div class="col-sm-12 col-lg-12 mb-3 mb-lg-2">
<form action="{{ route('admin.business-settings.update-setup') }}" method="post"
enctype="multipart/form-data">
@csrf
<div class="card mb-3">
<div class="card-header">
<h4 class="card-title m-0 d-flex align-items-center"> <span class="card-header-icon mr-2"><i class="tio-user"></i></span> <span>{{translate('messages.general_info')}}</span></h4>
</div>
<div class="card-body">
<!-- Name Email and Phone -->
<div class="row">
<div class="col-md-4">
@php($name = \App\Models\BusinessSetting::where('key', 'business_name')->first())
<div class="form-group">
<label class="input-label" for="exampleFormControlInput1">{{ translate('messages.business') }}
{{ translate('messages.name') }}</label>
<input type="text" name="restaurant_name" value="{{ $name->value ?? '' }}" class="form-control"
placeholder="{{ translate('messages.Ex :') }} ABC Company" required>
</div>
</div>
@php($phone = \App\Models\BusinessSetting::where('key', 'phone')->first())
<div class="col-md-4">
<div class="form-group">
<label class="input-label"
for="exampleFormControlInput1">{{ translate('messages.phone') }}</label>
<input type="text" value="{{ $phone->value ?? '' }}" name="phone"
class="form-control" placeholder="{{ translate('messages.Ex :') }} +9XXX-XXX-XXXX" required>
</div>
</div>
@php($email = \App\Models\BusinessSetting::where('key', 'email_address')->first())
<div class="col-md-4">
<div class="form-group">
<label class="input-label"
for="exampleFormControlInput1">{{ translate('messages.email') }}</label>
<input type="email" value="{{ $email->value ?? '' }}" name="email"
class="form-control" placeholder="{{ translate('messages.Ex :') }} contact@company.com" required>
</div>
</div>
</div>
<!-- Map and Address -->
<div class="row gy-3">
<div class="col-lg-6">
@php($address = \App\Models\BusinessSetting::where('key', 'address')->first())
<div class="form-group">
<label class="input-label"
for="exampleFormControlInput1">{{ translate('messages.address') }}</label>
<textarea type="text" id="address" name="address" class="form-control" placeholder="{{ translate('messages.Ex :') }} House#94, Road#8, Abc City" rows="1"
required>{{ $address->value ?? '' }}</textarea>
</div>
@php($footer_text = \App\Models\BusinessSetting::where('key', 'footer_text')->first())
<div class="form-group">
<label class="input-label"
for="exampleFormControlInput1">{{ translate('messages.footer') }}
{{ translate('messages.text') }}</label>
<textarea type="text" value="" name="footer_text" class="form-control" placeholder="" rows="1"
required>{{ $footer_text->value ?? '' }}</textarea>
</div>
@php($default_location = \App\Models\BusinessSetting::where('key', 'default_location')->first())
@php($default_location = $default_location->value ? json_decode($default_location->value, true) : 0)
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"
for="latitude">{{ translate('messages.latitude') }}<span class="input-label-secondary"
data-toggle="tooltip" data-placement="right" data-original-title="{{ translate('messages.click_on_the_map_select_your_defaul_location') }}"><img
src="{{ asset('/public/assets/admin/img/info-circle.svg') }}"
alt="{{ translate('messages.click_on_the_map_select_your_defaul_location') }}"></span></label>
<input type="text" id="latitude" name="latitude" class="form-control d-inline"
placeholder="{{ translate('messages.Ex :') }} -94.22213"
value="{{ $default_location ? $default_location['lat'] : 0 }}" required readonly>
</div>
<div class="form-group mb-0">
<label class="input-label text-capitalize d-flex alig-items-center"
for="longitude">{{ translate('messages.longitude') }}<span class="input-label-secondary"
data-toggle="tooltip" data-placement="right" data-original-title="{{ translate('messages.click_on_the_map_select_your_defaul_location') }}"><img
src="{{ asset('/public/assets/admin/img/info-circle.svg') }}"
alt="{{ translate('messages.click_on_the_map_select_your_defaul_location') }}"></span></label>
<input type="text" name="longitude" class="form-control" placeholder="{{ translate('messages.Ex :') }} 103.344322"
id="longitude" value="{{ $default_location ? $default_location['lng'] : 0 }}"
required readonly>
</div>
</div>
<div class="col-lg-6">
<input id="pac-input" class="controls rounded overflow-hidden initial-9"
title="{{ translate('messages.search_your_location_here') }}" type="text"
placeholder="{{ translate('messages.search_here') }}" />
<div id="location_map_canvas"></div>
</div>
</div>
</div>
</div>
<div class="card mb-3">
<div class="card-header">
<h4 class="card-title m-0 d-flex align-items-center"> <span class="card-header-icon mr-2"><i class="tio-neighborhood"></i></span> <span>{{translate('messages.business')}} {{translate('messages.info')}}</span></h4>
</div>
<div class="card-body pb-0">
<div class="row">
<div class="col-sm-6 col-md-4">
@php($logo = \App\Models\BusinessSetting::where('key', 'logo')->first())
@php($logo = $logo->value ?? '')
<div class="form-group mb-0">
<center class="h-100px">
<img class="initial-10"
id="viewer"
onerror="this.src='{{ asset('public/assets/admin/img/160x160/img2.jpg') }}'"
src="{{ asset('storage/app/public/business/' . $logo) }}" alt="logo image" />
</center>
<label class="input-label mt-2"> {{ translate('messages.logo') }} <small class="text-danger">* ( {{ translate('messages.ratio') }} 300x100 )</small></label>
<div class="custom-file mb-3">
<input type="file" name="logo" id="customFileEg1" class="custom-file-input"
accept=".jpg, .png, .jpeg, .gif, .bmp, .tif, .tiff|image/*">
<label class="custom-file-label" for="customFileEg1">{{ translate('messages.choose') }}
{{ translate('messages.file') }}</label>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
@php($icon = \App\Models\BusinessSetting::where('key', 'icon')->first())
@php($icon = $icon->value ?? '')
<div class="form-group mb-0">
<center class="h-100px">
<img class="initial-10" id="iconViewer"
onerror="this.src='{{ asset('public/assets/admin/img/160x160/img2.jpg') }}'"
src="{{ asset('storage/app/public/business/' . $icon) }}" alt="Fav icon" />
</center>
<label class="input-label mt-2"> {{ translate('messages.Fav Icon') }}<small class="text-danger">* ( {{ translate('messages.ratio') }} 150x150 )</small></label>
<div class="custom-file mb-3">
<input type="file" name="icon" id="favIconUpload" class="custom-file-input"
accept=".jpg, .png, .jpeg, .gif, .bmp, .tif, .tiff|image/*">
<label class="custom-file-label" for="favIconUpload">{{ translate('messages.choose') }}
{{ translate('messages.file') }}</label>
</div>
</div>
</div>
{{-- <div class="col-sm-6 col-md-4 align-self-end">
@php($site_direction = \App\Models\BusinessSetting::where('key', 'site_direction')->first())
@php($site_direction = $site_direction->value ?? '')
<div class="form-group mb-3">
<label class="input-label mt-2">{{ translate('messages.Site Direction') }}</label>
<select id="site_direction" name="site_direction" class="form-control js-select2-custom">
<option value="ltr" {{ $site_direction == 'ltr'? 'selected' : '' }} >{{ translate('Left_to_Right') }}</option>
<option value="rtl" {{ $site_direction == 'rtl'? 'selected' : '' }} >{{ translate('Right_to_Left') }}</option>
</select>
</div>
</div> --}}
</div>
<div class="row">
<div class="col-md-4 col-sm-6 col-12">
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"
for="country">{{ translate('messages.country') }}</label>
<select id="country" name="country" class="form-control js-select2-custom">
<option value="AF">Afghanistan</option>
<option value="AX">Åland Islands</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
<option value="AG">Antigua and Barbuda</option>
<option value="AR">Argentina</option>
<option value="AM">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia, Plurinational State of</option>
<option value="BQ">Bonaire, Sint Eustatius and Saba</option>
<option value="BA">Bosnia and Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BV">Bouvet Island</option>
<option value="BR">Brazil</option>
<option value="IO">British Indian Ocean Territory</option>
<option value="BN">Brunei Darussalam</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CX">Christmas Island</option>
<option value="CC">Cocos (Keeling) Islands</option>
<option value="CO">Colombia</option>
<option value="KM">Comoros</option>
<option value="CG">Congo</option>
<option value="CD">Congo, the Democratic Republic of the</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="CI">Côte d'Ivoire</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CW">Curaçao</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FK">Falkland Islands (Malvinas)</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="TF">French Southern Territories</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GG">Guernsey</option>
<option value="GN">Guinea</option>
<option value="GW">Guinea-Bissau</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HM">Heard Island and McDonald Islands</option>
<option value="VA">Holy See (Vatican City State)</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong</option>
<option value="HU">Hungary</option>
<option value="IS">Iceland</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IR">Iran, Islamic Republic of</option>
<option value="IQ">Iraq</option>
<option value="IE">Ireland</option>
<option value="IM">Isle of Man</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JE">Jersey</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakhstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="KP">Korea, Democratic People's Republic of</option>
<option value="KR">Korea, Republic of</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Lao People's Democratic Republic</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macao</option>
<option value="MK">Macedonia, the former Yugoslav Republic of</option>
<option value="MG">Madagascar</option>
<option value="MW">Malawi</option>
<option value="MY">Malaysia</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="YT">Mayotte</option>
<option value="MX">Mexico</option>
<option value="FM">Micronesia, Federated States of</option>
<option value="MD">Moldova, Republic of</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="ME">Montenegro</option>
<option value="MS">Montserrat</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Namibia</option>
<option value="NR">Nauru</option>
<option value="NP">Nepal</option>
<option value="NL">Netherlands</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NU">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="MP">Northern Mariana Islands</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau</option>
<option value="PS">Palestinian Territory, Occupied</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PN">Pitcairn</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="RE">Réunion</option>
<option value="RO">Romania</option>
<option value="RU">Russian Federation</option>
<option value="RW">Rwanda</option>
<option value="BL">Saint Barthélemy</option>
<option value="SH">Saint Helena, Ascension and Tristan da Cunha</option>
<option value="KN">Saint Kitts and Nevis</option>
<option value="LC">Saint Lucia</option>
<option value="MF">Saint Martin (French part)</option>
<option value="PM">Saint Pierre and Miquelon</option>
<option value="VC">Saint Vincent and the Grenadines</option>
<option value="WS">Samoa</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome and Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="RS">Serbia</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SX">Sint Maarten (Dutch part)</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="SO">Somalia</option>
<option value="ZA">South Africa</option>
<option value="GS">South Georgia and the South Sandwich Islands</option>
<option value="SS">South Sudan</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SJ">Svalbard and Jan Mayen</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syrian Arab Republic</option>
<option value="TW">Taiwan, Province of China</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania, United Republic of</option>
<option value="TH">Thailand</option>
<option value="TL">Timor-Leste</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad and Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TM">Turkmenistan</option>
<option value="TC">Turks and Caicos Islands</option>
<option value="TV">Tuvalu</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="GB">United Kingdom</option>
<option value="US">United States</option>
<option value="UM">United States Minor Outlying Islands</option>
<option value="UY">Uruguay</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VE">Venezuela, Bolivarian Republic of</option>
<option value="VN">Viet Nam</option>
<option value="VG">Virgin Islands, British</option>
<option value="VI">Virgin Islands, U.S.</option>
<option value="WF">Wallis and Futuna</option>
<option value="EH">Western Sahara</option>
<option value="YE">Yemen</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select>
</div>
</div>
<div class="col-md-4 col-sm-6 col-12">
@php($currency_code = \App\Models\BusinessSetting::where('key', 'currency')->first())
<div class="form-group">
<label class="input-label"
for="exampleFormControlInput1">{{ translate('messages.currency') }} ({{ \App\CentralLogics\Helpers::currency_symbol() }})</label>
<select name="currency" class="form-control js-select2-custom">
@foreach (\App\Models\Currency::orderBy('currency_code')->get() as $currency)
<option value="{{ $currency['currency_code'] }}"
{{ $currency_code ? ($currency_code->value == $currency['currency_code'] ? 'selected' : '') : '' }}>
{{ $currency['currency_code'] }} ( {{ $currency['currency_symbol'] }} )
</option>
@endforeach
</select>
</div>
</div>
<div class="col-md-4 col-sm-6 col-12">
@php($currency_symbol_position = \App\Models\BusinessSetting::where('key', 'currency_symbol_position')->first())
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"
for="currency_symbol_position">{{ translate('messages.currency_symbol_positon') }}</label>
<select name="currency_symbol_position" class="form-control js-select2-custom"
id="currency_symbol_position">
<option value="left"
{{ $currency_symbol_position ? ($currency_symbol_position->value == 'left' ? 'selected' : '') : '' }}>
{{ translate('messages.left') }}
({{ \App\CentralLogics\Helpers::currency_symbol() }}123)
</option>
<option value="right"
{{ $currency_symbol_position ? ($currency_symbol_position->value == 'right' ? 'selected' : '') : '' }}>
{{ translate('messages.right') }}
(123{{ \App\CentralLogics\Helpers::currency_symbol() }})
</option>
</select>
</div>
</div>
{{-- <div class="col-md-4 col-sm-6 col-12">
<div class="form-group language--setup">
<label class="input-label"
for="exampleFormControlInput1">{{ translate('messages.language') }} </label>
<select name="language[]" id="language" data-maximum-selection-length="3"
class="form-control js-select2-custom" required multiple=true data-toggle="tooltip"
title="{{ translate('messages.add_language_warrning') }}">
<option value="en">English(default)</option>
<option value="af">Afrikaans</option>
<option value="sq">Albanian - shqip</option>
<option value="am">Amharic - አማርኛ</option>
<option value="ar">Arabic - العربية</option>
<option value="an">Aragonese - aragonés</option>
<option value="hy">Armenian - հայերեն</option>
<option value="ast">Asturian - asturianu</option>
<option value="az">Azerbaijani - azərbaycan dili</option>
<option value="eu">Basque - euskara</option>
<option value="be">Belarusian - беларуская</option>
<option value="bn">Bengali - ব</option>
<option value="bs">Bosnian - bosanski</option>
<option value="br">Breton - brezhoneg</option>
<option value="bg">Bulgarian - български</option>
<option value="ca">Catalan - català</option>
<option value="ckb">Central Kurdish - کوردی (دەستنوسی عەرەبی)</option>
<option value="zh">Chinese - 中文</option>
<option value="zh-HK">Chinese (Hong Kong) - 中文(香港)</option>
<option value="zh-CN">Chinese (Simplified) - 中文(简体)</option>
<option value="zh-TW">Chinese (Traditional) - 中文(繁體)</option>
<option value="co">Corsican</option>
<option value="hr">Croatian - hrvatski</option>
<option value="cs">Czech - čeština</option>
<option value="da">Danish - dansk</option>
<option value="nl">Dutch - Nederlands</option>
<option value="en-AU">English (Australia)</option>
<option value="en-CA">English (Canada)</option>
<option value="en-IN">English (India)</option>
<option value="en-NZ">English (New Zealand)</option>
<option value="en-ZA">English (South Africa)</option>
<option value="en-GB">English (United Kingdom)</option>
<option value="en-US">English (United States)</option>
<option value="eo">Esperanto - esperanto</option>
<option value="et">Estonian - eesti</option>
<option value="fo">Faroese - føroyskt</option>
<option value="fil">Filipino</option>
<option value="fi">Finnish - suomi</option>
<option value="fr">French - français</option>
<option value="fr-CA">French (Canada) - français (Canada)</option>
<option value="fr-FR">French (France) - français (France)</option>
<option value="fr-CH">French (Switzerland) - français (Suisse)</option>
<option value="gl">Galician - galego</option>
<option value="ka">Georgian - ქართული</option>
<option value="de">German - Deutsch</option>
<option value="de-AT">German (Austria) - Deutsch (Österreich)</option>
<option value="de-DE">German (Germany) - Deutsch (Deutschland)</option>
<option value="de-LI">German (Liechtenstein) - Deutsch (Liechtenstein)</option>
<option value="de-CH">German (Switzerland) - Deutsch (Schweiz)</option>
<option value="el">Greek - Ελληνικά</option>
<option value="gn">Guarani</option>
<option value="gu">Gujarati - ગજર</option>
<option value="ha">Hausa</option>
<option value="haw">Hawaiian - ʻŌlelo Hawaiʻi</option>
<option value="he">Hebrew - עברית</option>
<option value="hi">Hindi - हि</option>
<option value="hu">Hungarian - magyar</option>
<option value="is">Icelandic - íslenska</option>
<option value="id">Indonesian - Indonesia</option>
<option value="ia">Interlingua</option>
<option value="ga">Irish - Gaeilge</option>
<option value="it">Italian - italiano</option>
<option value="it-IT">Italian (Italy) - italiano (Italia)</option>
<option value="it-CH">Italian (Switzerland) - italiano (Svizzera)</option>
<option value="ja">Japanese - 日本語</option>
<option value="kn">Kannada - ಕನನಡ</option>
<option value="kk">Kazakh - қазақ тілі</option>
<option value="km">Khmer - ខ</option>
<option value="ko">Korean - 한국어</option>
<option value="ku">Kurdish - Kurdî</option>
<option value="ky">Kyrgyz - кыргызча</option>
<option value="lo">Lao - ລາວ</option>
<option value="la">Latin</option>
<option value="lv">Latvian - latviešu</option>
<option value="ln">Lingala - lingála</option>
<option value="lt">Lithuanian - lietuvių</option>
<option value="mk">Macedonian - македонски</option>
<option value="ms">Malay - Bahasa Melayu</option>
<option value="ml">Malayalam - മലയ</option>
<option value="mt">Maltese - Malti</option>
<option value="mr">Marathi - मर</option>
<option value="mn">Mongolian - монгол</option>
<option value="ne">Nepali - न</option>
<option value="no">Norwegian - norsk</option>
<option value="nb">Norwegian Bokmål - norsk bokmål</option>
<option value="nn">Norwegian Nynorsk - nynorsk</option>
<option value="oc">Occitan</option>
<option value="or">Oriya - ଓଡି</option>
<option value="om">Oromo - Oromoo</option>
<option value="ps">Pashto - پښتو</option>
<option value="fa">Persian - فارسی</option>
<option value="pl">Polish - polski</option>
<option value="pt">Portuguese - português</option>
<option value="pt-BR">Portuguese (Brazil) - português (Brasil)</option>
<option value="pt-PT">Portuguese (Portugal) - português (Portugal)</option>
<option value="pa">Punjabi - ਪ</option>
<option value="qu">Quechua</option>
<option value="ro">Romanian - română</option>
<option value="mo">Romanian (Moldova) - română (Moldova)</option>
<option value="rm">Romansh - rumantsch</option>
<option value="ru">Russian - русский</option>
<option value="gd">Scottish Gaelic</option>
<option value="sr">Serbian - српски</option>
<option value="sh">Serbo-Croatian - Srpskohrvatski</option>
<option value="sn">Shona - chiShona</option>
<option value="sd">Sindhi</option>
<option value="si">Sinhala - සහල</option>
<option value="sk">Slovak - slovenčina</option>
<option value="sl">Slovenian - slovenščina</option>
<option value="so">Somali - Soomaali</option>
<option value="st">Southern Sotho</option>
<option value="es">Spanish - español</option>
<option value="es-AR">Spanish (Argentina) - español (Argentina)</option>
<option value="es-419">Spanish (Latin America) - español (Latinoamérica)</option>
<option value="es-MX">Spanish (Mexico) - español (México)</option>
<option value="es-ES">Spanish (Spain) - español (España)</option>
<option value="es-US">Spanish (United States) - español (Estados Unidos)</option>
<option value="su">Sundanese</option>
<option value="sw">Swahili - Kiswahili</option>
<option value="sv">Swedish - svenska</option>
<option value="tg">Tajik - тоҷикӣ</option>
<option value="ta">Tamil - தமி</option>
<option value="tt">Tatar</option>
<option value="te">Telugu - త</option>
<option value="th">Thai - ไทย</option>
<option value="ti">Tigrinya - ትግርኛ</option>
<option value="to">Tongan - lea fakatonga</option>
<option value="tr">Turkish - Türkçe</option>
<option value="tk">Turkmen</option>
<option value="tw">Twi</option>
<option value="uk">Ukrainian - українська</option>
<option value="ur">Urdu - اردو</option>
<option value="ug">Uyghur</option>
<option value="uz">Uzbek - o‘zbek</option>
<option value="vi">Vietnamese - Tiếng Việt</option>
<option value="wa">Walloon - wa</option>
<option value="cy">Welsh - Cymraeg</option>
<option value="fy">Western Frisian</option>
<option value="xh">Xhosa</option>
<option value="yi">Yiddish</option>
<option value="yo">Yoruba - Èdè Yorùbá</option>
<option value="zu">Zulu - isiZulu</option>
</select>
</div>
</div> --}}
<div class="col-md-4 col-sm-6 col-12">
@php($tz = \App\Models\BusinessSetting::where('key', 'timezone')->first())
@php($tz = $tz ? $tz->value : 0)
<div class="form-group">
<label
class="input-label text-capitalize d-flex alig-items-center">{{ translate('messages.time_zone') }}</label>
<select name="timezone" class="form-control js-select2-custom">
<option value="UTC" {{ $tz ? ($tz == '' ? 'selected' : '') : '' }}>UTC</option>
<option value="Etc/GMT+12" {{ $tz ? ($tz == 'Etc/GMT+12' ? 'selected' : '') : '' }}>
(GMT-12:00)
International Date Line West</option>
<option value="Pacific/Midway"
{{ $tz ? ($tz == 'Pacific/Midway' ? 'selected' : '') : '' }}>
(GMT-11:00) Midway Island, Samoa</option>
<option value="Pacific/Honolulu"
{{ $tz ? ($tz == 'Pacific/Honolulu' ? 'selected' : '') : '' }}>
(GMT-10:00) Hawaii</option>
<option value="US/Alaska" {{ $tz ? ($tz == 'US/Alaska' ? 'selected' : '') : '' }}>
(GMT-09:00)
Alaska</option>
<option value="America/Los_Angeles"
{{ $tz ? ($tz == 'America/Los_Angeles' ? 'selected' : '') : '' }}>(GMT-08:00)
Pacific Time
(US & Canada)</option>
<option value="America/Tijuana"
{{ $tz ? ($tz == 'America/Tijuana' ? 'selected' : '') : '' }}>
(GMT-08:00) Tijuana, Baja California</option>
<option value="US/Arizona" {{ $tz ? ($tz == 'US/Arizona' ? 'selected' : '') : '' }}>
(GMT-07:00)
Arizona</option>
<option value="America/Chihuahua"
{{ $tz ? ($tz == 'America/Chihuahua' ? 'selected' : '') : '' }}>(GMT-07:00)
Chihuahua, La
Paz, Mazatlan</option>
<option value="US/Mountain"
{{ $tz ? ($tz == 'US/Mountain' ? 'selected' : '') : '' }}>(GMT-07:00)
Mountain Time (US & Canada)</option>
<option value="America/Managua"
{{ $tz ? ($tz == 'America/Managua' ? 'selected' : '') : '' }}>
(GMT-06:00) Central America</option>
<option value="US/Central" {{ $tz ? ($tz == 'US/Central' ? 'selected' : '') : '' }}>
(GMT-06:00)
Central Time (US & Canada)</option>
<option value="America/Mexico_City"
{{ $tz ? ($tz == 'America/Mexico_City' ? 'selected' : '') : '' }}>(GMT-06:00)
Guadalajara,
Mexico City, Monterrey</option>
<option value="Canada/Saskatchewan"
{{ $tz ? ($tz == 'Canada/Saskatchewan' ? 'selected' : '') : '' }}>(GMT-06:00)
Saskatchewan
</option>
<option value="America/Bogota"
{{ $tz ? ($tz == 'America/Bogota' ? 'selected' : '') : '' }}>
(GMT-05:00) Bogota, Lima, Quito, Rio Branco</option>
<option value="US/Eastern" {{ $tz ? ($tz == 'US/Eastern' ? 'selected' : '') : '' }}>
(GMT-05:00)
Eastern Time (US & Canada)</option>
<option value="US/East-Indiana"
{{ $tz ? ($tz == 'US/East-Indiana' ? 'selected' : '') : '' }}>
(GMT-05:00) Indiana (East)</option>
<option value="Canada/Atlantic"
{{ $tz ? ($tz == 'Canada/Atlantic' ? 'selected' : '') : '' }}>
(GMT-04:00) Atlantic Time (Canada)</option>
<option value="America/Caracas"
{{ $tz ? ($tz == 'America/Caracas' ? 'selected' : '') : '' }}>
(GMT-04:00) Caracas, La Paz</option>
<option value="America/Manaus"
{{ $tz ? ($tz == 'America/Manaus' ? 'selected' : '') : '' }}>
(GMT-04:00) Manaus</option>
<option value="America/Santiago"
{{ $tz ? ($tz == 'America/Santiago' ? 'selected' : '') : '' }}>
(GMT-04:00) Santiago</option>
<option value="Canada/Newfoundland"
{{ $tz ? ($tz == 'Canada/Newfoundland' ? 'selected' : '') : '' }}>(GMT-03:30)
Newfoundland
</option>
<option value="America/Sao_Paulo"
{{ $tz ? ($tz == 'America/Sao_Paulo' ? 'selected' : '') : '' }}>(GMT-03:00)
Brasilia</option>
<option value="America/Argentina/Buenos_Aires"
{{ $tz ? ($tz == 'America/Argentina/Buenos_Aires' ? 'selected' : '') : '' }}>
(GMT-03:00)
Buenos Aires, Georgetown</option>
<option value="America/Godthab"
{{ $tz ? ($tz == 'America/Godthab' ? 'selected' : '') : '' }}>
(GMT-03:00) Greenland</option>
<option value="America/Montevideo"
{{ $tz ? ($tz == 'America/Montevideo' ? 'selected' : '') : '' }}>(GMT-03:00)
Montevideo
</option>
<option value="America/Noronha"
{{ $tz ? ($tz == 'America/Noronha' ? 'selected' : '') : '' }}>
(GMT-02:00) Mid-Atlantic</option>
<option value="Atlantic/Cape_Verde"
{{ $tz ? ($tz == 'Atlantic/Cape_Verde' ? 'selected' : '') : '' }}>(GMT-01:00)
Cape Verde Is.
</option>
<option value="Atlantic/Azores"
{{ $tz ? ($tz == 'Atlantic/Azores' ? 'selected' : '') : '' }}>
(GMT-01:00) Azores</option>
<option value="Africa/Casablanca"
{{ $tz ? ($tz == 'Africa/Casablanca' ? 'selected' : '') : '' }}>(GMT+00:00)
Casablanca,
Monrovia, Reykjavik</option>
<option value="Etc/Greenwich"
{{ $tz ? ($tz == 'Etc/Greenwich' ? 'selected' : '') : '' }}>
(GMT+00:00) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</option>
<option value="Europe/Amsterdam"
{{ $tz ? ($tz == 'Europe/Amsterdam' ? 'selected' : '') : '' }}>
(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</option>
<option value="Europe/Belgrade"
{{ $tz ? ($tz == 'Europe/Belgrade' ? 'selected' : '') : '' }}>
(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague</option>
<option value="Europe/Brussels"
{{ $tz ? ($tz == 'Europe/Brussels' ? 'selected' : '') : '' }}>
(GMT+01:00) Brussels, Copenhagen, Madrid, Paris</option>
<option value="Europe/Sarajevo"
{{ $tz ? ($tz == 'Europe/Sarajevo' ? 'selected' : '') : '' }}>
(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb</option>
<option value="Africa/Lagos"
{{ $tz ? ($tz == 'Africa/Lagos' ? 'selected' : '') : '' }}>
(GMT+01:00) West Central Africa</option>
<option value="Asia/Amman" {{ $tz ? ($tz == 'Asia/Amman' ? 'selected' : '') : '' }}>
(GMT+02:00)
Amman</option>
<option value="Europe/Athens"
{{ $tz ? ($tz == 'Europe/Athens' ? 'selected' : '') : '' }}>
(GMT+02:00) Athens, Bucharest, Istanbul</option>
<option value="Asia/Beirut"
{{ $tz ? ($tz == 'Asia/Beirut' ? 'selected' : '') : '' }}>(GMT+02:00)
Beirut</option>
<option value="Africa/Cairo"
{{ $tz ? ($tz == 'Africa/Cairo' ? 'selected' : '') : '' }}>
(GMT+02:00) Cairo</option>
<option value="Africa/Harare"
{{ $tz ? ($tz == 'Africa/Harare' ? 'selected' : '') : '' }}>
(GMT+02:00) Harare, Pretoria</option>
<option value="Europe/Helsinki"
{{ $tz ? ($tz == 'Europe/Helsinki' ? 'selected' : '') : '' }}>
(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius</option>
<option value="Asia/Jerusalem"
{{ $tz ? ($tz == 'Asia/Jerusalem' ? 'selected' : '') : '' }}>
(GMT+02:00) Jerusalem</option>
<option value="Europe/Minsk"
{{ $tz ? ($tz == 'Europe/Minsk' ? 'selected' : '') : '' }}>
(GMT+02:00) Minsk</option>
<option value="Africa/Windhoek"
{{ $tz ? ($tz == 'Africa/Windhoek' ? 'selected' : '') : '' }}>
(GMT+02:00) Windhoek</option>
<option value="Asia/Kuwait"
{{ $tz ? ($tz == 'Asia/Kuwait' ? 'selected' : '') : '' }}>(GMT+03:00)
Kuwait, Riyadh, Baghdad</option>
<option value="Europe/Moscow"
{{ $tz ? ($tz == 'Europe/Moscow' ? 'selected' : '') : '' }}>
(GMT+03:00) Moscow, St. Petersburg, Volgograd</option>
<option value="Africa/Nairobi"
{{ $tz ? ($tz == 'Africa/Nairobi' ? 'selected' : '') : '' }}>
(GMT+03:00) Nairobi</option>
<option value="Asia/Tbilisi"
{{ $tz ? ($tz == 'Asia/Tbilisi' ? 'selected' : '') : '' }}>
(GMT+03:00) Tbilisi</option>
<option value="Asia/Tehran"
{{ $tz ? ($tz == 'Asia/Tehran' ? 'selected' : '') : '' }}>(GMT+03:30)
Tehran</option>
<option value="Asia/Muscat"
{{ $tz ? ($tz == 'Asia/Muscat' ? 'selected' : '') : '' }}>(GMT+04:00)
Abu Dhabi, Muscat</option>
<option value="Asia/Baku" {{ $tz ? ($tz == 'Asia/Baku' ? 'selected' : '') : '' }}>
(GMT+04:00)
Baku</option>
<option value="Asia/Yerevan"
{{ $tz ? ($tz == 'Asia/Yerevan' ? 'selected' : '') : '' }}>
(GMT+04:00) Yerevan</option>
<option value="Asia/Kabul" {{ $tz ? ($tz == 'Asia/Kabul' ? 'selected' : '') : '' }}>
(GMT+04:30)
Kabul</option>
<option value="Asia/Yekaterinburg"
{{ $tz ? ($tz == 'Asia/Yekaterinburg' ? 'selected' : '') : '' }}>(GMT+05:00)
Yekaterinburg
</option>
<option value="Asia/Karachi"
{{ $tz ? ($tz == 'Asia/Karachi' ? 'selected' : '') : '' }}>
(GMT+05:00) Islamabad, Karachi, Tashkent</option>
<option value="Asia/Calcutta"
{{ $tz ? ($tz == 'Asia/Calcutta' ? 'selected' : '') : '' }}>
(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option>
<!-- <option value="Asia/Calcutta" {{ $tz ? ($tz == 'Asia/Calcutta' ? 'selected' : '') : '' }}>(GMT+05:30) Sri Jayawardenapura</option> -->
<option value="Asia/Katmandu"
{{ $tz ? ($tz == 'Asia/Katmandu' ? 'selected' : '') : '' }}>
(GMT+05:45) Kathmandu</option>
<option value="Asia/Almaty"
{{ $tz ? ($tz == 'Asia/Almaty' ? 'selected' : '') : '' }}>(GMT+06:00)
Almaty, Novosibirsk</option>
<option value="Asia/Dhaka" {{ $tz ? ($tz == 'Asia/Dhaka' ? 'selected' : '') : '' }}>
(GMT+06:00)
Astana, Dhaka</option>
<option value="Asia/Rangoon"
{{ $tz ? ($tz == 'Asia/Rangoon' ? 'selected' : '') : '' }}>
(GMT+06:30) Yangon (Rangoon)</option>
<option value="Asia/Bangkok"
{{ $tz ? ($tz == 'Asia/Bangkok' ? 'selected' : '') : '' }}>
(GMT+07:00) Bangkok, Hanoi, Jakarta</option>
<option value="Asia/Krasnoyarsk"
{{ $tz ? ($tz == 'Asia/Krasnoyarsk' ? 'selected' : '') : '' }}>
(GMT+07:00) Krasnoyarsk</option>
<option value="Asia/Hong_Kong"
{{ $tz ? ($tz == 'Asia/Hong_Kong' ? 'selected' : '') : '' }}>
(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi</option>
<option value="Asia/Kuala_Lumpur"
{{ $tz ? ($tz == 'Asia/Kuala_Lumpur' ? 'selected' : '') : '' }}>(GMT+08:00) Kuala
Lumpur,
Singapore</option>
<option value="Asia/Irkutsk"
{{ $tz ? ($tz == 'Asia/Irkutsk' ? 'selected' : '') : '' }}>
(GMT+08:00) Irkutsk, Ulaan Bataar</option>
<option value="Australia/Perth"
{{ $tz ? ($tz == 'Australia/Perth' ? 'selected' : '') : '' }}>
(GMT+08:00) Perth</option>
<option value="Asia/Taipei"
{{ $tz ? ($tz == 'Asia/Taipei' ? 'selected' : '') : '' }}>(GMT+08:00)
Taipei</option>
<option value="Asia/Tokyo" {{ $tz ? ($tz == 'Asia/Tokyo' ? 'selected' : '') : '' }}>
(GMT+09:00)
Osaka, Sapporo, Tokyo</option>
<option value="Asia/Seoul" {{ $tz ? ($tz == 'Asia/Seoul' ? 'selected' : '') : '' }}>
(GMT+09:00)
Seoul</option>
<option value="Asia/Yakutsk"
{{ $tz ? ($tz == 'Asia/Yakutsk' ? 'selected' : '') : '' }}>
(GMT+09:00) Yakutsk</option>
<option value="Australia/Adelaide"
{{ $tz ? ($tz == 'Australia/Adelaide' ? 'selected' : '') : '' }}>(GMT+09:30)
Adelaide
</option>
<option value="Australia/Darwin"
{{ $tz ? ($tz == 'Australia/Darwin' ? 'selected' : '') : '' }}>
(GMT+09:30) Darwin</option>
<option value="Australia/Brisbane"
{{ $tz ? ($tz == 'Australia/Brisbane' ? 'selected' : '') : '' }}>(GMT+10:00)
Brisbane
</option>
<option value="Australia/Canberra"
{{ $tz ? ($tz == 'Australia/Canberra' ? 'selected' : '') : '' }}>(GMT+10:00)
Canberra,
Melbourne, Sydney</option>
<option value="Australia/Hobart"
{{ $tz ? ($tz == 'Australia/Hobart' ? 'selected' : '') : '' }}>
(GMT+10:00) Hobart</option>
<option value="Pacific/Guam"
{{ $tz ? ($tz == 'Pacific/Guam' ? 'selected' : '') : '' }}>
(GMT+10:00) Guam, Port Moresby</option>
<option value="Asia/Vladivostok"
{{ $tz ? ($tz == 'Asia/Vladivostok' ? 'selected' : '') : '' }}>
(GMT+10:00) Vladivostok</option>
<option value="Asia/Magadan"
{{ $tz ? ($tz == 'Asia/Magadan' ? 'selected' : '') : '' }}>
(GMT+11:00) Magadan, Solomon Is., New Caledonia</option>
<option value="Pacific/Auckland"
{{ $tz ? ($tz == 'Pacific/Auckland' ? 'selected' : '') : '' }}>
(GMT+12:00) Auckland, Wellington</option>
<option value="Pacific/Fiji"
{{ $tz ? ($tz == 'Pacific/Fiji' ? 'selected' : '') : '' }}>
(GMT+12:00) Fiji, Kamchatka, Marshall Is.</option>
<option value="Pacific/Tongatapu"
{{ $tz ? ($tz == 'Pacific/Tongatapu' ? 'selected' : '') : '' }}>(GMT+13:00)
Nuku'alofa
</option>
</select>
</div>
</div>
<div class="col-md-4 col-sm-6 col-12">
@php($tf = \App\Models\BusinessSetting::where('key', 'timeformat')->first())
@php($tf = $tf ? $tf->value : '24')
<div class="form-group">
<label
class="input-label text-capitalize d-flex alig-items-center">{{ translate('messages.time_format') }}</label>
<select name="time_format" class="form-control">
<option value="12" {{ $tf == '12' ? 'selected' : '' }}>
{{ translate('messages.12_hour') }}
</option>
<option value="24" {{ $tf == '24' ? 'selected' : '' }}>
{{ translate('messages.24_hour') }}
</option>
</select>
</div>
</div>
<div class="col-md-4 col-12">
@php($admin_commission = \App\Models\BusinessSetting::where('key', 'admin_commission')->first())
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"
for="admin_commission">{{ translate('messages.admin_commission') }} (%)</label>
<input type="number" name="admin_commission" class="form-control" id="admin_commission"
value="{{ $admin_commission ? $admin_commission->value : 0 }}" min="0" max="100"
required>
</div>
</div>
<div class="col-md-4 col-12">
@php($digit_after_decimal_point = \App\Models\BusinessSetting::where('key', 'digit_after_decimal_point')->first())
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"
for="digit_after_decimal_point">{{ translate('messages.Digit after decimal point') }}</label>
<input type="number" name="digit_after_decimal_point" class="form-control"
id="digit_after_decimal_point"
value="{{ $digit_after_decimal_point ? $digit_after_decimal_point->value : 0 }}"
min="0" max="4" required>
</div>
</div>
<div class="col-md-4 col-12">
@php($delivery_charge_comission = \App\Models\BusinessSetting::where('key', 'delivery_charge_comission')->first())
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"
for="admin_comission_in_delivery_charge">{{translate('Admin Comission in Delivery Charge')}} (%)</label>
<input type="number" name="admin_comission_in_delivery_charge" class="form-control" id="admin_comission_in_delivery_charge"
min="0" max="100" step="0.01" value="{{ $delivery_charge_comission ? $delivery_charge_comission->value: 0 }}">
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h4 class="card-title m-0 d-flex align-items-center"> <span class="card-header-icon mr-2"><i class="tio-settings-outlined"></i></span> <span>{{translate('messages.business')}} {{translate('messages.setting')}}</span></h4>
</div>
<div class="card-body">
<!-- This is Latest Desgin of Business Setting -->
<div class="row">
<div class="col-xl-4 col-lg-4 col-sm-6">
@php($ev = \App\Models\BusinessSetting::where('key', 'customer_verification')->first())
@php($ev = $ev ? $ev->value : 0)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center">
<span class="line--limit-1">{{ translate('messages.customer') }}
{{ translate('messages.verification') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If you turn on this, customers have to verify their phone number through an OTP and you need to set up an SMS gateway before turning on this.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1"
name="customer_verification" {{ $ev == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@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)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center">
<span class="line--limit-1">{{ translate('messages.restaurant_self_registration') }}</span> <span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If this field is active, restaurants can register themself using the restaurant app, user app, or website.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1"
name="restaurant_self_registration"
{{ $restaurant_self_registration == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@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)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center">
<span class="line--limit-1">{{ translate('messages.dm_self_registration') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('When this field is active, delivery men can register themself using the delivery man app, user app, or website.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1"
name="dm_self_registration"
{{ $dm_self_registration == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@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)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('messages.admin') }}
{{ translate('messages.order') }} {{ translate('messages.notification') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('Turning on this, admin will get a popup notification with sound for all orders.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1"
name="admin_order_notification"
{{ $admin_order_notification == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@php($schedule_order = \App\Models\BusinessSetting::where('key', 'schedule_order')->first())
@php($schedule_order = $schedule_order ? $schedule_order->value : 0)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('messages.scheduled') }}
{{ translate('messages.orders') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('After activating this field, customers are able to place scheduled orders.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" value="1" name="schedule_order" class="toggle-switch-input" {{ $schedule_order == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@php($odc = \App\Models\BusinessSetting::where('key', 'order_delivery_verification')->first())
@php($odc = $odc ? $odc->value : 0)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('messages.order') }}
{{ translate('messages.delivery') }} {{ translate('messages.verification') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If this field is active, customers have to provide a 4-digit code to the delivery man to deliver an order successfully. Customers will get this code in order details.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1" name="odc"
{{ $odc == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@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')
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('DM Tips Option') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If this option is enabled, the Delivery men Tip option will show on the user app & web app during order placement.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1"
name="dm_tips_status"
{{ $dm_tips_status == '1' ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@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)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('messages.show_earning_for_each_order') }}
</span>
<span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If this field is enabled, the delivery man is able to see the earnings when accepting the order on the order request page.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1"
name="show_dm_earning"
{{ $show_dm_earning == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@php($vnv = \App\Models\BusinessSetting::where('key', 'toggle_veg_non_veg')->first())
@php($vnv = $vnv ? $vnv->value : 0)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('Veg / Non Veg Option') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('When this field is active, the restaurants and the customers both can see the veg/non-veg tag.')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1" name="vnv"
{{ $vnv == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@php($business_model = \App\Models\BusinessSetting::where('key', 'business_model')->first())
@php($business_model = $business_model->value ? json_decode($business_model->value, true) : 0)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('Commission') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right"
data-original-title="{{translate('This option will changes the Restaurant Business to Commission Based')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1" name="commission" id="commission_id"
{{ $business_model['commission'] == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('subscription') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right"
data-original-title="{{translate('This option will changes the Restaurant Business to Package Based Subscription Model')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1" name="subscription" id='subscription_id'
{{-- onclick="form_alert('Business_Model_change','{{ translate('messages.You_want_to_Change_the_Business_Model_for ') }} {{ translate('messages.This_will_expire_the_current_package') }}')" --}}
{{-- onclick='function_f()' --}}
{{ $business_model['subscription'] == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@php($tax_included = \App\Models\BusinessSetting::where('key', 'tax_included')->first())
@php($tax_included = $tax_included ? $tax_included->value : 0)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center"><span class="line--limit-1">{{ translate('messages.include_tax_amount') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('messages.tax_include_exclude_hint')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1" name="tax_included"
{{ $tax_included == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@php($order_subscription = \App\Models\BusinessSetting::where('key', 'order_subscription')->first())
@php($order_subscription = $order_subscription ? $order_subscription->value : 0)
<div class="form-group">
<label class="toggle-switch toggle-switch-sm d-flex justify-content-between border rounded px-3 px-xl-4 form-control">
<span class="pr-2 d-flex align-items-center">
<span class="line--limit-1">{{ translate('order_subscription') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right"
data-original-title="{{translate('order_subscription_hint')}}">
<i class="tio-info-outined"></i>
</span></span>
<input type="checkbox" class="toggle-switch-input" value="1" name="order_subscription"
{{ $order_subscription == 1 ? 'checked' : '' }}>
<span class="toggle-switch-label text">
<span class="toggle-switch-indicator"></span>
</span>
</label>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-4 col-lg-4 col-sm-6">
@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')
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"><span class="line--limit-1">{{ translate('messages.order_confirmation_model') }}</span> <span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('The chosen model will confirm the order first. For example, if you choose the delivery confirmation model then the delivery men will get the orders before the restaurants and confirm for delivery and after confirmation by the delivery men, the restaurants will get the order for processing.')}}">
<i class="tio-info-outined"></i>
</span></label>
<div class="resturant-type-group border">
<label class="form-check form--check mr-2 mr-md-4">
<input class="form-check-input" type="radio" value="restaurant"
name="order_confirmation_model" id="order_confirmation_model"
{{ $order_confirmation_model == 'restaurant' ? 'checked' : '' }}>
<span class="form-check-label">
{{ translate('messages.restaurant') }}
</span>
</label>
<label class="form-check form--check mr-2 mr-md-4">
<input class="form-check-input" type="radio" value="deliveryman"
name="order_confirmation_model" id="order_confirmation_model2"
{{ $order_confirmation_model == 'deliveryman' ? 'checked' : '' }}>
<span class="form-check-label">
{{ translate('messages.deliveryman') }}
</span>
</label>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@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)
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"><span class="line--limit-1">{{translate('Delivery Man can Cancel Order')}}</span> <span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('Order cancellation is possible by the delivery person if "Yes" is chosen .')}}">
<i class="tio-info-outined"></i>
</span></label>
<div class="resturant-type-group border">
<label class="form-check form--check mr-2 mr-md-4">
<input class="form-check-input" type="radio" value="1"
name="canceled_by_deliveryman" id="canceled_by_deliveryman"
{{ $canceled_by_deliveryman == 1 ? 'checked' : '' }}>
<span class="form-check-label">
{{ translate('yes') }}
</span>
</label>
<label class="form-check form--check mr-2 mr-md-4">
<input class="form-check-input" type="radio" value="0"
name="canceled_by_deliveryman" id="canceled_by_deliveryman2"
{{ $canceled_by_deliveryman == 0 ? 'checked' : '' }}>
<span class="form-check-label">
{{ translate('no') }}
</span>
</label>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-sm-6">
@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)
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"><span class="line--limit-1">{{ translate('restaurant_can_cancel_order') }} </span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('Order cancellation is possible by the restaurant if "Yes" is chosen .')}}">
<i class="tio-info-outined"></i>
</span></label>
<div class="resturant-type-group border">
<label class="form-check form--check mr-2 mr-md-4">
<input class="form-check-input" type="radio" value="1"
name="canceled_by_restaurant" id="canceled_by_restaurant"
{{ $canceled_by_restaurant == 1 ? 'checked' : '' }}>
<span class="form-check-label">
{{ translate('yes') }}
</span>
</label>
<label class="form-check form--check mr-2 mr-md-4">
<input class="form-check-input" type="radio" value="0"
name="canceled_by_restaurant" id="canceled_by_restaurant2"
{{ $canceled_by_restaurant == 0 ? 'checked' : '' }} >
<span class="form-check-label">
{{ translate('no') }}
</span>
</label>
</div>
</div>
</div>
</div>
<!-- This is Latest Desgin of Business Setting -->
<div class="row">
<div class="col-md-4 col-12">
@php($schedule_order_slot_duration = \App\Models\BusinessSetting::where('key', 'schedule_order_slot_duration')->first())
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"
for="schedule_order_slot_duration">
<span class="line--limit-1">{{ translate('messages.Schedule order slot duration') }}
{{ translate('messages.minute') }}</span><span class="input-label-secondary text--title" data-toggle="tooltip" data-placement="right" data-original-title="{{translate('The schedule order time slot will be managed by this value. For example, If you set 30 minutes in this section then you will see 10.30 to 11 or 11.00 to 11.30 or 11.30 to 12.00 when ordering user apps.')}}">
<i class="tio-info-outined"></i>
</span>
</label>
<input type="number" name="schedule_order_slot_duration" class="form-control"
id="schedule_order_slot_duration"
value="{{ $schedule_order_slot_duration ? $schedule_order_slot_duration->value : 0 }}"
min="0" required placeholder="{{ translate('messages.Ex :') }} ABC Company">
</div>
</div>
<div class="col-md-4 col-12">
@php($dm_maximum_orders = \App\Models\BusinessSetting::where('key', 'dm_maximum_orders')->first())
<div class="form-group">
<label class="input-label text-capitalize d-flex alig-items-center"
for="dm_maximum_orders"><span class="line--limit-1">{{ translate('messages.dm_maximum_order') }}</span>
<span data-toggle="tooltip" data-placement="right" data-original-title="{{translate('The given number will be the maximum ongoing orders for a delivery man.') }}"
class="input-label-secondary"><img
src="{{ asset('/public/assets/admin/img/info-circle.svg') }}"
alt="{{ translate('messages.dm_maximum_order_hint') }}"></span>
</label>
<input type="number" name="dm_maximum_orders" class="form-control" id="dm_maximum_orders"
min="1" value="{{ $dm_maximum_orders ? $dm_maximum_orders->value : 1 }}" required placeholder="{{ translate('messages.Ex :') }} +9XXX-XXX-XXXX">
</div>
</div>
<div class="col-md-4 col-12">
@php($free_delivery_over = \App\Models\BusinessSetting::where('key', 'free_delivery_over')->first())
<div class="form-group">
<div class="d-flex justify-content-between align-items-center">
<label class="input-label text-capitalize d-inline-flex alig-items-center"
for="free_delivery_over">
<span class="line--limit-1">{{ translate('messages.free_delivery_over') }} ({{ \App\CentralLogics\Helpers::currency_symbol() }})</span>
<span data-toggle="tooltip" data-placement="right" data-original-title="{{translate(' If the order amount exceeds this amount the delivery fee will be free and the delivery fee will be deducted from the admin’s commission.')}}" class="input-label-secondary"><img src="{{ asset('/public/assets/admin/img/info-circle.svg') }}" alt="{{ translate('messages.dm_maximum_order_hint') }}"></span>
</label>
<label class="switch ml-3 float-right">
<input type="checkbox" class="status" name="free_delivery_over_status"
id="free_delivery_over_status" value="1"
{{ isset($free_delivery_over->value) ? 'checked' : '' }}>
<span class="slider round"></span>
</label>
</div>
<input type="number" name="free_delivery_over" class="form-control"
id="free_delivery_over"
value="{{ $free_delivery_over ? $free_delivery_over->value : 0 }}" min="0"
step=".01" placeholder="{{ translate('messages.Ex :') }} 100" required {{ isset($free_delivery_over->value) ? '' : 'readonly' }}>
</div>
</div>
<div class="col-md-4 col-12">
@php($dm_max_cash_in_hand = \App\Models\BusinessSetting::where('key', 'dm_max_cash_in_hand')->first())
<div class="form-group">
<label class="input-label d-flex text-capitalize"
for="dm_max_cash_in_hand">
<span class="line--limit-1">
{{translate('Delivery Man Maximum Cash in Hand')}} ({{ \App\CentralLogics\Helpers::currency_symbol() }})
</span>
<span data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If the cash in hand for a delivery man exceeds this amount the delivery man cannot accept new orders before depositing the amount to admin.')}}" class="input-label-secondary"><img src="{{ asset('/public/assets/admin/img/info-circle.svg') }}" alt="{{ translate('messages.dm_maximum_order_hint') }}"></span>
</label>
<input type="number" name="dm_max_cash_in_hand" class="form-control"
id="dm_max_cash_in_hand" min="0" step=".001"
value="{{ $dm_max_cash_in_hand ? $dm_max_cash_in_hand->value : 0 }}" required>
</div>
</div>
{{-- <div class="col-md-4 col-12">
@php($max_otp_hit = \App\Models\BusinessSetting::where('key', 'max_otp_hit')->first())
<div class="form-group">
<label class="input-label d-flex text-capitalize"
for="max_otp_hit">
<span class="line--limit-1">
{{translate('messages.Max_Number_of_Otp_Hits_in_a_Row')}}
</span>
<span data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If the cash in hand for a delivery man exceeds this amount the delivery man cannot accept new orders before depositing the amount to admin.')}}" class="input-label-secondary"><img src="{{ asset('/public/assets/admin/img/info-circle.svg') }}" alt="{{ translate('messages.dm_maximum_order_hint') }}"></span>
</label>
<input type="number" name="max_otp_hit" class="form-control"
id="max_otp_hit" min="0" step="1"
value="{{ $max_otp_hit ? $max_otp_hit->value : 10 }}">
</div>
</div> --}}
{{-- <div class="col-md-4 col-12">
@php($max_otp_hit_time = \App\Models\BusinessSetting::where('key', 'max_otp_hit_time')->first())
<div class="form-group">
<label class="input-label d-flex text-capitalize"
for="max_otp_hit_time">
<span class="line--limit-1">
{{translate('messages.max_otp_hit_time')}}
</span>
<span data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If the cash in hand for a delivery man exceeds this amount the delivery man cannot accept new orders before depositing the amount to admin.')}}" class="input-label-secondary"><img src="{{ asset('/public/assets/admin/img/info-circle.svg') }}" alt="{{ translate('messages.dm_maximum_order_hint') }}"></span>
</label>
<input type="number" name="max_otp_hit_time" class="form-control"
id="max_otp_hit_time" min="0" step="1"
value="{{ $max_otp_hit_time ? $max_otp_hit_time->value : 10 }}">
</div>
</div> --}}
{{-- <div class="col-md-4 col-12">
@php($otp_interval_time = \App\Models\BusinessSetting::where('key', 'otp_interval_time')->first())
<div class="form-group">
<label class="input-label d-flex text-capitalize"
for="otp_interval_time">
<span class="line--limit-1">
{{translate('messages.otp_resend_interval_time')}} ({{ translate('messages.seconds') }})
</span>
<span data-toggle="tooltip" data-placement="right" data-original-title="{{translate('If the cash in hand for a delivery man exceeds this amount the delivery man cannot accept new orders before depositing the amount to admin.')}}" class="input-label-secondary"><img src="{{ asset('/public/assets/admin/img/info-circle.svg') }}" alt="{{ translate('messages.dm_maximum_order_hint') }}"></span>
</label>
<input type="number" name="otp_interval_time" class="form-control"
id="otp_interval_time" min="0" step="1"
value="{{ $otp_interval_time ? $otp_interval_time->value : 30 }}">
</div>
</div> --}}
</div>
<!-- Footer Text Commented Out For Removing Purpose -->
<!-- Footer Text Commented Out For Removing Purpose -->
<div class="btn--container justify-content-end">
<button type="reset" id="reset_btn" class="btn btn--reset">{{ translate('messages.Reset') }} </button>
<button type="{{ env('APP_MODE') != 'demo' ? 'submit' : 'button' }}"
onclick="{{ env('APP_MODE') != 'demo' ? '' : 'call_demo()' }}"
class="btn btn--primary mb-2"><i class="tio-save-outlined mr-2"></i>{{ translate('messages.save') }} {{translate('messages.info')}}</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
@endsection
@push('script_2')
<script>
$(document).ready(function () {
$('body').on('change','#subscription_id', function(){
if(this.checked){
var status = 1;
Swal.fire({
title: '{{ translate('messages.are_you_sure') }}',
text: '{{ translate('messages.You_want_to_active_subscription_model') }}',
type: 'warning',
showCancelButton: false,
cancelButtonColor: 'default',
confirmButtonColor: '#377dff',
// cancelButtonText: 'No',
confirmButtonText: 'OK ',
// reverseButtons: true
})
}else{
var status = 0;
Swal.fire({
title: '{{ translate('messages.are_you_sure') }}',
text: '{{ translate('messages.You_want_to_deactive_subscription_model_current_subscribed_restaurants_still_be_subscribed_untill_their_package_expires') }}',
type: 'warning',
showCancelButton: false,
cancelButtonColor: 'default',
confirmButtonColor: '#377dff',
// cancelButtonText: 'No',
confirmButtonText: 'OK',
// reverseButtons: true
})
}
// url= '{{ url('admin/business-settings/pages/shipping-policy') }}/'+status;
// $.ajax({
// url: url,
// method: 'get',
// success: function(result) {
// toastr.success('{{ translate('messages.status updated!') }}', {
// CloseButton: true,
// ProgressBar: true
// });
// }
// });
});
});
$(document).ready(function () {
$('body').on('change','#commission_id', function(){
if(this.checked){
var status = 1;
Swal.fire({
title: '{{ translate('messages.are_you_sure_?') }}',
text: '{{ translate('messages.You_want_to_active_commission_model') }}',
type: 'warning',
showCancelButton: false,
cancelButtonColor: 'default',
confirmButtonColor: '#377dff',
// cancelButtonText: 'No',
confirmButtonText: 'OK ',
// reverseButtons: true
})
}else{
var status = 0;
Swal.fire({
title: '{{ translate('messages.are_you_sure_?') }}',
text: '{{ translate('messages.You_want_to_deactive_commission_model') }}',
type: 'warning',
showCancelButton: false,
cancelButtonColor: 'default',
confirmButtonColor: '#377dff',
// cancelButtonText: 'No',
confirmButtonText: 'OK',
// reverseButtons: true
})
}
});
});
// @php($language = \App\Models\BusinessSetting::where('key', 'language')->first())
// @php($language = $language->value ?? null)
// let language = <?php echo $language; ?>;
// $('[id=language]').val(language);
function maintenance_mode() {
@if (env('APP_MODE') == 'demo')
toastr.warning('Sorry! You can not enable maintainance mode in demo!');
@else
Swal.fire({
title: 'Are you sure?',
text: 'Be careful before you turn on/off maintenance mode',
type: 'warning',
showCancelButton: true,
cancelButtonColor: 'default',
confirmButtonColor: '#377dff',
cancelButtonText: 'No',
confirmButtonText: 'Yes',
reverseButtons: true
}).then((result) => {
if (result.value) {
$.get({
url: '{{ route('admin.maintenance-mode') }}',
contentType: false,
processData: false,
beforeSend: function() {
$('#loading').show();
},
success: function(data) {
toastr.success(data.message);
},
complete: function() {
$('#loading').hide();
},
});
} else {
location.reload();
}
})
@endif
};
function readURL(input, viewer) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#' + viewer).attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]);
}
}
$("#customFileEg1").change(function() {
readURL(this, 'viewer');
});
$("#favIconUpload").change(function() {
readURL(this, 'iconViewer');
});
</script>
<script
src="https://maps.googleapis.com/maps/api/js?key={{ \App\Models\BusinessSetting::where('key', 'map_api_key')->first()->value }}&libraries=places&v=3.45.8">
</script>
<script>
function initAutocomplete() {
var myLatLng = {
lat: {{ $default_location ? $default_location['lat'] : '-33.8688' }},
lng: {{ $default_location ? $default_location['lng'] : '151.2195' }}
};
const map = new google.maps.Map(document.getElementById("location_map_canvas"), {
center: {
lat: {{ $default_location ? $default_location['lat'] : '-33.8688' }},
lng: {{ $default_location ? $default_location['lng'] : '151.2195' }}
},
zoom: 13,
mapTypeId: "roadmap",
});
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
});
marker.setMap(map);
var geocoder = geocoder = new google.maps.Geocoder();
google.maps.event.addListener(map, 'click', function(mapsMouseEvent) {
var coordinates = JSON.stringify(mapsMouseEvent.latLng.toJSON(), null, 2);
var coordinates = JSON.parse(coordinates);
var latlng = new google.maps.LatLng(coordinates['lat'], coordinates['lng']);
marker.setPosition(latlng);
map.panTo(latlng);
document.getElementById('latitude').value = coordinates['lat'];
document.getElementById('longitude').value = coordinates['lng'];
geocoder.geocode({
'latLng': latlng
}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
if (results[1]) {
document.getElementById('address').innerHtml = results[1].formatted_address;
}
}
});
});
// Create the search box and link it to the UI element.
const input = document.getElementById("pac-input");
const searchBox = new google.maps.places.SearchBox(input);
map.controls[google.maps.ControlPosition.TOP_CENTER].push(input);
// Bias the SearchBox results towards current map's viewport.
map.addListener("bounds_changed", () => {
searchBox.setBounds(map.getBounds());
});
let markers = [];
// Listen for the event fired when the user selects a prediction and retrieve
// more details for that place.
searchBox.addListener("places_changed", () => {
const places = searchBox.getPlaces();
if (places.length == 0) {
return;
}
// Clear out the old markers.
markers.forEach((marker) => {
marker.setMap(null);
});
markers = [];
// For each place, get the icon, name and location.
const bounds = new google.maps.LatLngBounds();
places.forEach((place) => {
if (!place.geometry || !place.geometry.location) {
console.log("Returned place contains no geometry");
return;
}
var mrkr = new google.maps.Marker({
map,
title: place.name,
position: place.geometry.location,
});
google.maps.event.addListener(mrkr, "click", function(event) {
document.getElementById('latitude').value = this.position.lat();
document.getElementById('longitude').value = this.position.lng();
});
markers.push(mrkr);
if (place.geometry.viewport) {
// Only geocodes have viewport.
bounds.union(place.geometry.viewport);
} else {
bounds.extend(place.geometry.location);
}
});
map.fitBounds(bounds);
});
};
$(document).on('ready', function() {
initAutocomplete();
@php($country = \App\Models\BusinessSetting::where('key', 'country')->first())
@if ($country)
$("#country option[value='{{ $country->value }}']").attr('selected', 'selected').change();
@endif
$("#free_delivery_over_status").on('change', function() {
if ($("#free_delivery_over_status").is(':checked')) {
$('#free_delivery_over').removeAttr('readonly');
} else {
$('#free_delivery_over').attr('readonly', true);
$('#free_delivery_over').val('Ex : 0');
}
});
$("#maximum_shipping_charge_status").on('change', function() {
if ($("#maximum_shipping_charge_status").is(':checked')) {
$('#maximum_shipping_charge').removeAttr('readonly');
} else {
$('#maximum_shipping_charge').attr('readonly', true);
$('#maximum_shipping_charge').val('Ex : 0');
}
});
$("#max_cod_order_amount_status").on('change', function() {
if ($("#max_cod_order_amount_status").is(':checked')) {
$('#max_cod_order_amount').removeAttr('readonly');
} else {
$('#max_cod_order_amount').attr('readonly', true);
$('#max_cod_order_amount').val('Ex : 0');
}
});
});
$(document).on("keydown", "input", function(e) {
if (e.which == 13) e.preventDefault();
});
$('#reset_btn').click(function(){
location.reload(true);
})
</script>
@endpush