@extends('admin.layout.app') @section('content') Products Products @include('admin.layout.session') Add New Product Back @csrf Category Name -Select category- @forelse($categories as $key => $value) id == old('category_id')? 'selected' : ''}}>{{$value->category_name}} @empty No Category @endforelse @if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif Subcategory -Select subcategory- @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 {{old('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 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