@extends('layouts.admin') @section('style') @endSection @section('script') @endSection @section('content') @php $page_title = isset($store) ? __('heading.title_edit_stores').' '.$store['name'].'':__('heading.title_create_stores'); $store = $store ?? null; @endphp @csrf @method('PUT') {{-- Details --}} @php $tabs = ['Details', 'Smart Receipt']; if(!config('sys.enabled_ocr')) { unset($tabs[1]); } @endphp @foreach($tabs as $idx => $main_title) {{ $main_title }} @endforeach @if($store) Slug @endif Name * @if ($errors->has('name')) {{ $errors->first('name') }} @endif @php $fid = 'store_type'; @endphp Category * @foreach($store_types ?? [] as $type) {{ $type['name'] }} @endforeach Input to create new category @if ($errors->has($fid)) {{ $errors->first($fid) }} @endif @php $fid = 'status'; @endphp Status * @foreach($statuses ?? [] as $status) {{ $status }} @endforeach @if ($errors->has($fid)) {{ $errors->first($fid) }} @endif Product Group * ---Select a Product Group--- @foreach($product_groups as $productGroup) @if($store->product_group_id === $productGroup->id) {{ $productGroup->name }} @else {{ $productGroup->name }} @endif @endforeach @if ($errors->has('product_group_id')) {{ $errors->first('product_group_id') }} @endif @component('admin.components.date_format', ['date_format' => $date_format ?? []]) @endcomponent @endsection