@extends('vendor.site-bases.admin.inc.layout') @section('title', $product->detail()->where('locale', config('kakhura.site-bases.admin_editors_default_locale'))->first()->title) @section('content') @include('vendor.site-bases.admin.inc.message')

{{ $product->detail()->where('locale', config('kakhura.site-bases.admin_editors_default_locale'))->first()->title }}

@csrf
@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
@if($product->detail()->where('locale', $localeCode)->first()->promotions_image)
ატვირთული სურათი
@can('delete-product-img')
სურათის წაშლა
@endcan
@endif
@endforeach

{{--
--}}
{{--
--}}
@foreach ($product->children as $item)
ზომა: {{ $item->size }} {{ $item->unit->title ?? null }}
ფასი: {{ number_format($item->price, 2) }}
@if ($item->discounted_price) ფასდაკლებული ფასი: {{ number_format($item->discounted_price, 2) }} @endif
{{--
სიგრძე: {{ number_format($item->length, 2) }}
სიგანე: {{ number_format($item->width, 2) }}
სიმაღლე: {{ number_format($item->height, 2) }}
წონა: {{ number_format($item->weight, 2) }}
--}}
კოდი: {{ $item->unique_code }}
რაოდენობა: {{ $item->quantity }}
@endforeach
@if($product->video_image)
ატვირთული სურათი
@endif
@if($product->image)
ატვირთული სურათი
@endif
@if(!empty($product->images))
ატვირთული სურათი
@foreach ($product->images as $key => $image)
@can('delete-product-img')
სურათის წაშლა
@endcan
@endforeach
@endif
@if(!empty($product->pdfs))
ატვირთული PDF
@foreach ($product->pdfs as $key => $pdf)
@can('delete-product-pdf')
PDF-ის წაშლა
@endcan
@endforeach
@endif
@endsection @section('style') @endsection @section('script') @endsection