@extends("layouts.dashboard.app") @section("page-nav-title")
{{__('Items')}}
{{__('Edit New Item')}}
{{__('Items')}}
{{__('Edit')}}
{{$item->item_name_en}} ({{$item->item_name_ar}})
@endsection @section("content")
{{__('Edit New Item')}}
id)}}" enctype="multipart/form-data"> @csrf @method("put")
{{__('English Item Name')}}
@error("item_name_en")
{{$message}}
@enderror
{{__('Arabic Item Name')}}
@error("item_name_ar")
{{$message}}
@enderror
{{__('Category')}}
{{__('None')}}
@foreach($categories as $category)
id, $item)}}>{{$category->category_name_en}} ( {{$category->category_name_ar}} )
@endforeach
@error("category_id")
{{$message}}
@enderror
{{__('Sub-Category')}}
{{__('None')}}
@foreach($subcategories as $subcategory)
id == $item->sub_category_id) selected @endif>{{$subcategory->category_name_en}} ( {{$subcategory->category_name_ar}} )
@endforeach
@error("subcategory_id")
{{$message}}
@enderror
{{__('Brand')}}
{{__('None')}}
@foreach($brands as $brand)
id == $item->brand_id) selected @endif>{{$brand->brand_name_en}} ( {{$brand->brand_name_ar}} )
@endforeach
@error("subcategory_id")
{{$message}}
@enderror
{{__('Item Price')}}
@error("item_price")
{{$message}}
@enderror
{{__('Discount Price')}}
@error("Discount_price")
{{$message}}
@enderror
{{__('English Item Description')}}
{{inputValue("item_description_en",$item)}}
@error("item_description_en")
{{$message}}
@enderror
{{__('Arabic Item Description')}}
{{inputValue("item_description_ar",$item)}}
@error("item_description_ar")
{{$message}}
@enderror
{{__('Main Photo')}}
{{__('Upload Photo')}}
@error("item_image")
{{$message}}
@enderror
@if($item->item_image != null)
@else
@endif
{{__("Multi Image")}}
{{__("Upload ")}}
{{-- i want to make multi image with delete and and update--}}
@foreach($images as $img)
id)}}" class="btn btn-sm btn-danger m-auto" id="delete" title="Delete Data">
@endforeach
{{__('Item Status')}}
{{__('New Arrival')}}
new_arrival == 1) checked @endif >
@endsection @section("scripts") @endsection