@extends('layouts.super_admin.app') @section('styles') @error('category') @enderror @error('district') @enderror @endsection @section('content')
@csrf

{{ __('global.details') }}

@if($product->image && File::exists(public_path('assets/images/products/' . $product->image))) @else @endif
@if($product->image && File::exists(public_path('assets/images/products/' . $product->image))) Uploaded File @else Default Product @endif
@error('category') {{ $message }} @enderror
@error('district') {{ $message }} @enderror
is_partner ? 'checked' : '' }}> {{ __('global.partner') }}
is_popular ? 'checked' : '' }}> {{ __('global.popular') }}

{{ __('global.information') }}

@foreach($languages as $language)
@error('title_' . $language->code) {{ $message }} @enderror
@error('address_' . $language->code) {{ $message }} @enderror
@endforeach
{{ __('global.media') }}
@csrf

{{ __('global.active_hours') }}

@if($product->zones > 1)
@endif @for($zoneIndex = 1; $zoneIndex <= $product->zones; $zoneIndex++)
@foreach($weekArray as $key => $day) @if(!empty($product->activeHours($zoneIndex)->first()))
@if($product->activeHours($zoneIndex)->first()->{$day . '_start'} == null || $product->activeHours($zoneIndex)->first()->{$day . '_start'} == 'full')
{{ __('global.'.$day) }}
activeHours($zoneIndex)->first()->{$day . '_start'} == null ? 'style="display: none;"' : '' !!}>
activeHours($zoneIndex)->first()->{$day . '_end'} == null || $product->activeHours($zoneIndex)->first()->{$day . '_end'} == 'full' ? 'style="display: none;"' : '' !!}>
activeHours($zoneIndex)->first()->{$day . '_start'} == null || $product->activeHours($zoneIndex)->first()->{$day . '_start'} == 'full' ? 'style="display: none;"' : '' !!}>
@else @foreach(unserialize($product->activeHours($zoneIndex)->first()->{$day . '_start'}) as $timeKey => $timeData)
@if($timeKey == 0)
{{ __('global.'.$day) }}
@endif
activeHours($zoneIndex)->first()->{$day . '_start'} == null ? 'style="display: none;"' : '' !!}>
activeHours($zoneIndex)->first()->{$day . '_end'} == null || $product->activeHours($zoneIndex)->first()->{$day . '_end'} == 'full' ? 'style="display: none;"' : '' !!}>
@if($timeKey == 0)
activeHours($zoneIndex)->first()->{$day . '_start'} == null || $product->activeHours($zoneIndex)->first()->{$day . '_start'} == 'full' ? 'style="display: none;"' : '' !!}>
@else
@endif
@endforeach @endif
@else
{{ __('global.'.$day) }}
@endif @endforeach
@endfor

{{ __('global.attributes') }}

@foreach($product->productAttributes as $keyId => $productAttribute)
@if($productAttribute->attribute->type == 'select')
@elseif($productAttribute->attribute->type == 'checkbox')
value == 'on' ? 'checked' : '' }}> {{ __('global.yes_no') }}
@else
@endif
@endforeach

{{ __('global.additional_products') }}

@foreach($product->productAdditional as $keyId => $productAdditional)
@endforeach

{{ __('global.location') }}

{{ __('global.meta_data') }}

@foreach($languages as $language)
{{ __('global.keywords_info_1') }} ,{{ __('global.keywords_info_2') }}
@endforeach
@endsection @section('scripts') @vite('resources/assets/js/select2.js') @endsection