@extends('digitalmenu::layouts.app') @section('title', 'Shop Settings | Merchant Central') @section('styles') @endsection @section('content')

Shop Setting

Manage your store's identity, contact information, and operating hours.

{!! csrf_field() !!} @if ($errors->any())
error
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{-- Shop Information --}}

store Shop Information

@if ($errors->has('name'))

{{ $errors->first('name') }}

@endif
@include('digitalmenu::partials.phone_country_selector', [ 'fieldName' => 'business_contact', 'phoneValue' => old('business_contact', $shop->business_contact), ]) @if ($errors->has('business_contact'))

{{ $errors->first('business_contact') }}

@endif
@include('digitalmenu::partials.currency_selector', [ 'selectedId' => old('currency_id', $shop->currency_id), ]) @if ($errors->has('currency_id'))

{{ $errors->first('currency_id') }}

@endif
@if ($errors->has('website'))

{{ $errors->first('website') }}

@endif

{{ strlen(old('short_description', $shop->short_description ?? '')) }}/300

@if ($errors->has('short_description'))

{{ $errors->first('short_description') }}

@endif
{{-- Business Type --}}
@if ($errors->has('shop_type'))

{{ $errors->first('shop_type') }}

@endif
{{-- Business Hours --}}

schedule Business Hours

Set the open and close time for each day of the week.

@php $days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']; $dayIcons = [ 'Monday' => 'looks_one', 'Tuesday' => 'looks_two', 'Wednesday' => 'looks_3', 'Thursday' => 'looks_4', 'Friday' => 'looks_5', 'Saturday' => 'looks_6', 'Sunday' => 'looks_7', ]; $weekendDays = ['Saturday', 'Sunday']; @endphp {{-- Column headers --}}
@foreach($days as $index => $day) @php $savedHour = $businessHours->get($day); $savedOpen = old("business_hour.open_hour.$index", $savedHour ? $savedHour->open_hour : '08:00'); $savedClose = old("business_hour.close_hour.$index", $savedHour ? $savedHour->close_hour : '22:00'); $isWeekend = in_array($day, $weekendDays); @endphp
{{-- Day label --}}
{{ $isWeekend ? 'weekend' : 'work' }} {{ $day }} @if($isWeekend) Weekend @endif
{{-- Open Hour --}}
sunny expand_more
{{-- Close Hour --}}
bedtime expand_more
@endforeach
{{-- Shop Identity (Logo) --}}

image Shop Identity

@if ($shop->logo) Shop Logo @else storefront @endif
cloud_upload

Click to upload

PNG format only. Larger images will be cropped to 512x512 px (max 5 MB).

{{-- Actions --}}
Cancel
{{-- Crop Modal --}} @endsection @section('scripts') @endsection