@extends('admin.layout.app') @section('content') Products Products @include('admin.layout.session') Edit Products Delete @method('delete') @csrf @csrf @method('put') Category Name -Select category- @forelse($categories as $key => $value) id == $product->category_id ? 'selected' : ''}}>{{$value->category_name}} @empty No Category @endforelse @if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif Subcategory -Select category- @forelse($subcategories as $key => $value) id == $product->subcategory_id ? 'selected' : ''}}>{{$value->subcategory_name}} @empty No subCategory @endforelse @if ($errors->has('subcategory_id')) {{ $errors->first('subcategory_id') }} @endif Product Name @if ($errors->has('product_name')) {{ $errors->first('product_name') }} @endif Product Price @if ($errors->has('price')) {{ $errors->first('price') }} @endif Description {!!$product->product_details!!} @if ($errors->has('product_details')) {{ $errors->first('product_details') }} @endif Product Image Accepted formats: png, jpg, jpeg. Max file size 5Mb @if ($errors->has('product_image')) {{ $errors->first('product_image') }} @endif @if($product->product_image != '') @endif File Name Browse @if ($errors->has('s3_file_name')) {{ $errors->first('s3_file_name') }} @endif @if ($errors->has('s3_file_size')) {{ $errors->first('s3_file_size') }} @endif @if ($errors->has('s3_upload_key')) {{ $errors->first('s3_upload_key') }} @endif Publish Date @if ($errors->has('publish_date')) {{ $errors->first('publish_date') }} @endif Submit Back @endsection @push('js') @endpush