Viewing file: form.blade.php (20.15 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@csrf
<div> <div class="form-step active"> <h4>{{ trans('layout.general_info') }}</h4> <section> <div class="row"> <div class="col-lg-12 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.name') }}*</label> <input value="{{ old('name') }}" type="text" name="name" class="form-control" placeholder="Ex: The Disaster Cafe" required> </div> </div> <div class="col-lg-12 mb-2"> <div class="row mb-2 "> <div class="col-lg-6"> <label class="text-label">{{ trans('Select Country') }}</label> <select name="country" id="country" class="form-control select2" required> <option value="">Select Country</option> @foreach(getCountryCode() as $code) <option value="{{$code['code']}}">{{$code['name']}}</option> @endforeach </select> </div> <div class="col-lg-6" id="country_state">
</div> </div> </div> <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.location') }}</label> <input value="{{ old('location') }}" type="text" name="location" class="form-control" id="locationInput" placeholder="Ex: 2806 Montague Rd, BC, Canada"> <div class="city-par d-none"> <ul class="city-name pt-2 pb-2" id="inputShowCity"></ul> </div> </div> <input type="hidden" id="lat" name="lat" value="{{ old('lat') }}"> <input type="hidden" id="long" name="long" value="{{ old('long') }}"> </div> <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.email') }}</label> <input value="{{ old('email') }}" type="email" name="email" class="form-control" placeholder="example@example.com"> </div> </div> <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.phone_number') }}</label> <input value="{{ old('phone_number') }}" type="text" name="phone_number" class="form-control" placeholder="(+0)000-000-0000"> </div> </div> <div class="form-group"> <label class="text-label">{{ trans('layout.timing') }}</label> <input value="{{ old('timing') }}" type="text" name="timing" class="form-control" placeholder="Ex: 8:00 - 20:00"> </div>
<div class="{{ auth()->user()->type == 'restaurant_owner' ? 'col-lg-6' : 'col-lg-6' }} mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.currency_code') }}</label> <input value="{{ old('currency_code') }}" type="text" name="currency_code" class="form-control" placeholder="{{ trans('Ex: usd or eur') }}"> </div> </div>
<div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.currency_symbol') }}</label> <input value="{{ old('currency_symbol') }}" type="text" name="currency_symbol" class="form-control"> </div> </div>
@if (auth()->user()->type == 'admin') <div class="col-lg-6 mb-2"> <div class="form-group"> <label for="">{{ trans('layout.select_a_user') }}</label> <select name="user_id" class="form-control select2" id="user_id"> @foreach ($customers as $customer) <option {{ isset($customer) && isset($restaurant->user_id) && $restaurant->user_id == $customer->id ? 'selected' : '' }} value="{{ $customer->id }}">{{ $customer->name }}</option> @endforeach </select> </div> </div> @endif <div class="col-lg-12 mb-3"> <div class="form-group"> <label class="text-label">{{ trans('layout.description') }}*</label> <textarea rows="10" name="description" class="form-control" placeholder="Ex: The Disaster Cafe will deliver, with 7.8 richter scale earthquakes simulated during meals" required>{{ old('description') }}</textarea> </div> </div> @php $orderStatus = json_decode(get_settings('manage_place_order')); @endphp
<div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.status') }}*</label> <select name="status" class="form-control"> <option value="active">{{ trans('layout.active') }}</option> <option value="inactive">{{ trans('layout.inactive') }}</option> </select> </div> </div>
@if (isset($orderStatus->admin_order_status) && $orderStatus->admin_order_status == 'enable') <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.order_settings') }}</label> <select name="order_status" class="form-control"> <option value="enable">{{ trans('layout.enable') }}</option> <option value="disable">{{ trans('layout.disable') }}</option> </select> </div> </div> @endif
<div class="col-lg-12 mb-3 text-devider"> <div class="form-check form-check-inline"> <input class="form-check-input" type="checkbox" id="cash_on_delivery_checkbox" value="yes" name="cash_on_delivery"> <label class="form-check-label" for="cash_on_delivery_checkbox">Cash on Delivery </label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" type="checkbox" id="takeaway_checkbox" value="yes" name="takeaway"> <label class="form-check-label" for="takeaway_checkbox">Takeaway </label> </div> <div class="form-check form-check-inline"> <input class="form-check-input" type="checkbox" id="table_booking_checkbox" value="yes" name="table_booking"> <label class="form-check-label" for="table_booking_checkbox">Table Book </label> </div> </div>
<div class="col-lg-6 mb-2 d-none" id="delivery_fee"> <div class="form-group"> <label class="text-label">{{ trans('layout.delivery_fee') }} </label> <input value="{{ old('delivery_fee') }}" type="text" name="delivery_fee" class="form-control" placeholder="Ex: 10" required> </div> </div> @php $modules = modules_status('MultiRestaurant'); @endphp @if ($modules) <div class="col-lg-6 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.publish_on_multiretaurant') }} @if (env('APP_DEMO')) <small class="addon">({{ trans('multirestaurant::layout.addon') }})</small> @endif <i data-toggle="tooltip" data-placement="top" title="{{ trans('multirestaurant::layout.publish_waring') }}" id="multirestaurant-tooltip" class="ti-info-alt"></i></label> <select name="on_multi_restaurant" class="form-control"> <option value="unpublish">{{ trans('layout.unpublish') }}</option> <option value="publish">{{ trans('layout.publish') }}</option> </select> </div> </div> @endif
</div> </section> <div class="text-right"> <button type="button" class="btn btn-primary next-step">Next</button> </div> </div> <div class="form-step"> <h4>{{ trans('layout.image_upload') }}</h4> <section> <div class="row"> <div class="col-lg-12 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.profile') }}</label> <input type="file" name="profile_file" class="form-control" accept="image/*"> </div> </div> <div class="col-lg-12 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('layout.cover') }}</label> <input type="file" name="cover_file" class="form-control" accept="image/*"> </div> </div> <div class="col-lg-12 mb-2"> <div class="form-group"> <label class="text-label">{{ trans('Photos') }}</label> <input type="file" name="images[]" class="form-control" accept="image/*" multiple> </div> </div> </div> </section> <div class="d-flex justify-content-between"> <button type="button" class="btn btn-secondary prev-step">Previous</button> <button type="button" class="btn btn-primary next-step">Next</button> </div> </div> <div class="form-step"> <h4>{{ trans('Add Others Details') }} @if (env('APP_DEMO')) <small class="addon">({{ trans('multirestaurant::layout.addon') }})</small> @endif </h4> <div class="form-check form-check-inline mt-2 mb-3"> <input class="form-check-input form-check-input-edit table_booking_checkbox" type="checkbox" id="featured_restaurant" value="yes" name="featured_restaurant"> <label class="form-check-label" for="featured_restaurant">Featured Restaurant</label> </div> <section> <div class="row"> <div class="col-sm-12 d-flex"> <label for="status">{{ trans('layout.has_reservation') }}</label> <div class="custom-switch"> <input id="has_reservation_checkbox" name="has_reservation" type="checkbox" class="custom-switch-button"> </div> </div> <div class="col-sm-12 check-singer d-none" id="has_reservation_show_div"> <div class="row"> <div class="col-lg-12 mb-2"> <label class="text-label">{{ trans('Set Opening Hours') }}</label> <div class="row align-items-end mb-2 "> <div class="col-lg-6"> <label class="text-label">{{ trans('Date') }}</label> <input type="text" name="opening_date[]" class="form-control" placeholder="Opening date" value="Saturday" readonly> </div> <div class="col-lg-6"> <label class="text-label">{{ trans('Timing') }}</label> <input type="text" name="opening_hour[]" class="form-control" placeholder="Ex: 8:00 - 20:00"> </div>
</div> <div class="opening-hours-container"> <div class="row align-items-end mb-2 "> <div class="col-lg-6"> <input type="text" name="opening_date[]" class="form-control" placeholder="Opening date" value="Sunday" readonly> </div> <div class="col-lg-6"> <input type="text" name="opening_hour[]" class="form-control" placeholder="Ex: 8:00 - 20:00" > </div> </div> <div class="row align-items-end mb-2 "> <div class="col-lg-6"> <input type="text" name="opening_date[]" class="form-control" placeholder="Opening date" value="Monday" readonly> </div> <div class="col-lg-6"> <input type="text" name="opening_hour[]" class="form-control" placeholder="Ex: 8:00 - 20:00"> </div> </div> <div class="row align-items-end mb-2 "> <div class="col-lg-6"> <input type="text" name="opening_date[]" class="form-control" placeholder="Opening date" value="Tuesday" readonly> </div> <div class="col-lg-6"> <input type="text" name="opening_hour[]" class="form-control" placeholder="Ex: 8:00 - 20:00" > </div> </div> <div class="row align-items-end mb-2 "> <div class="col-lg-6"> <input type="text" name="opening_date[]" class="form-control" placeholder="Opening date" value="Wednesday" readonly> </div> <div class="col-lg-6"> <input type="text" name="opening_hour[]" class="form-control" placeholder="Ex: 8:00 - 20:00" > </div> </div> <div class="row align-items-end mb-2 "> <div class="col-lg-6"> <input type="text" name="opening_date[]" class="form-control" placeholder="Opening date" value="Thursday" readonly> </div> <div class="col-lg-6"> <input type="text" name="opening_hour[]" class="form-control" placeholder="Ex: 8:00 - 20:00" > </div> </div> <div class="row align-items-end mb-2 "> <div class="col-lg-6"> <input type="text" name="opening_date[]" class="form-control" placeholder="Opening date" value="Friday" readonly> </div> <div class="col-lg-6"> <input type="text" name="opening_hour[]" class="form-control" placeholder="Ex: 8:00 - 20:00" > </div> </div> </div> </div> <div class="col-lg-12 mb-2"> <label class="text-label">{{ trans('Others Information') }}</label> <div class="row justify-content-end align-items-end mb-2 ">
<div class="col-lg-2"> <button type="button" class="btn btn-sm btn-info add_information"><i class="fa fa-plus"></i></button> </div>
</div> <div class="openingInformation"></div> </div> </div> </div>
</div> </section> <div class="d-flex justify-content-between"> <button type="button" class="btn btn-secondary prev-step">Previous</button> <button type="button" class="btn btn-primary next-step">Next</button> </div> </div> <div class="form-step"> <h4>{{ trans('layout.choose_template') }}</h4> <section> <div class="form-group mb-0"> <label class="radio-inline mr-3 restaurant-template"><input type="radio" name="template" value="classic"> <span>{{ trans('layout.classic') }}</span> <img class="max-h-300" src="{{ asset('images/classic_template.jpg') }}" alt="Classic Template">
</label> <label class="radio-inline mr-3 restaurant-template"><input type="radio" name="template" value="modern"> <span>{{ trans('layout.modern') }}</span> <img class="max-h-300" src="{{ asset('images/modern_template.png') }}" alt="Modern Template">
</label> <label class="d-none radio-inline mr-3 restaurant-template"><input type="radio" name="template" value="flipbook"> <span>{{ trans('layout.flipbook') }}</span> <img class="max-h-300" src="{{ asset('images/classic_template.jpg') }}" alt="Flipbook Template"> </label> <label class="d-none radio-inline mr-3 restaurant-template"><input type="radio" name="template" value="custom"> <span>{{ trans('layout.custom') }}</span> <img class="max-h-300" src="{{ asset('images/custom-preview.svg') }}" alt="Custom Template"> </label> </div> </section> <div class="d-flex justify-content-between"> <button type="button" class="btn btn-secondary prev-step">Previous</button> <button type="submit" class="btn btn-success">Submit</button> </div> </div> </div>
|