@extends('dashboard::layouts.layout') @push('header')
@endpush @section('content')
@lang('main.product') {{$product->id ?? ''}}
@lang('main.products')
    @foreach ($errors->all() as $error) @endforeach
@isset($product)
{{--
--}} {{-- --}} {{--
--}}
{{--
--}} {{-- --}} {{-- @foreach (\App\Models\Brand::active()->orderBy('name')->get() as $brand)--}} {{-- --}} {{-- @endforeach--}} {{-- --}} {{--
--}}
@php($productColors=$product->colors) @foreach (\App\Models\Color::select(['color'])->get()->pluck('color')->toArray() as $color) @endforeach
@php($productSizes=$product->sizes) @foreach (\App\Models\Size::select(['size'])->get()->pluck('size')->toArray() as $size) @endforeach
@foreach (\App\Models\Category::whereNull('category_id')->orderBy('name')->get() as $cat) {{-- --}} @endforeach
{{old('description',$product->description)}}

@lang('main.active')

{{--
--}} {{--

@lang('main.active')

--}} {{--
--}}
@isset($edit)
    @foreach ($product->getMedia() as $attachment)
  • {{$attachment->getUrl()}}

    {{$attachment->file_name}}

    {{round($attachment->size/1024/1024,2)}}@lang('main.mb')

    @foreach ($product->sizes ??[] as $size) id}][sizes][{$size}]",optional($attachment->sizes)[$size] ??0)}}"/> @endforeach
  • @endforeach
@if (is_array($product->options)) @foreach ($product->options??[] as $key => $option) @endforeach @endif
# @lang('main.key') @lang('main.value') @lang('main.delete')
{{$key+1}} {{$option['key'] ?? ''}} {{$option['value' ?? '']}}
@endisset
@endisset
@stop @push('js') @endpush