@extends('panel.layouts.master') @section('title','ویرایش محصول') @section('content') @include('panel.layouts.sidebar') @include('panel.layouts.header') ویرایش محصول @csrf @method('PATCH') عنوان* @error('title') {{ $message }} @enderror اسلاگ* @error('slug') {{ $message }} @enderror برند/مدل* @error('brand') {{ $message }} @enderror قیمت (تومان)* @error('price') {{ $message }} @enderror تخفیف (تومان) @error('discount') {{ $message }} @enderror دسته بندی* @foreach($categories as $category) category_id == $category->id ? 'selected' : '' }}>{{ $category->name }} @endforeach @error('category_id') {{ $message }} @enderror کالکشن collection_id == null ? 'selected' : '' }}>بدون کالکشن @foreach($collections as $collection) collection_id == $collection->id ? 'selected' : '' }}>{{ $collection->name }} @endforeach @error('collection_id') {{ $message }} @enderror وضعیت* status == '0' ? 'selected' : '' }}>منتشر نشده status == '1' ? 'selected' : '' }}>منتشر شده @error('status') {{ $message }} @enderror توضیحات {!! $product->desc !!} @error('desc') {{ $message }} @enderror تصویر اصلی (تک انتخابی) @error('main_image') {{ $message }} @enderror سایر تصاویر (چند انتخابی) @error('images') {{ $message }} @enderror color ? '' : 'checked' }}> بدون رنگ و سایز تعداد محصول* @error('total_count') {{ $message }} @enderror سایز رنگ تعداد حذف @if($product->size) @foreach(json_decode($product->size) as $key => $size) size)[$key] == 0 ? 'checked' : '' }}> 34 36 38 40 42 44 46 48 50 52 color)[$key] == 'special' ? 'checked' : '' }}> color)[$key] == 'special' ? 'readonly' : '' }} dir="ltr" required> @endforeach @endif ثبت @endsection @section('script') @endsection