@extends('layout.admindashboard') @section('content') Edit Products @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif Products @csrf Product Image1 Choose file Product Image2 Choose file Product Image3 Choose file Product name Video URL {{-- Description1 Description2 --}} Product Details Additional Information Category Select one... @foreach ($categories as $category) category_id) && $products->category_id == $category->id) selected @endif> {{ $category->name }} @endforeach Sub Category Select one... @if (isset($products->sub_category_id)) @foreach ($subCategories as $subCat) sub_category_id) && $products->sub_category_id == $subCat->id) selected @endif> {{ $subCat->name }} @endforeach @endif @endsection