@extends('frontend.layout.main') @section('main-container') {{ $PageHeading }} @if (isset($edit->p_name)) @else @endif @csrf @if($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @if(session('error')) {{ session('error') }} @endif @if(session('success')) {{ session('success') }} @endif Category Select Category @foreach($categoriesParent as $category) cat_id) && $edit->cat_id == $category->id ? 'selected' : '' }}> {{ $category->cat_name }} @endforeach Sub Category Select Sub Category Product Price Product Image @if(isset($edit->p_image)) @endif Submit Category Sub Category Product Title Product Image Price Action @foreach($products as $product) {{ $product->category->cat_name }} @if($product->sub_cat_id > 0) {{ $product->subcategory->cat_name }} @else - @endif {{ $product->p_name }} {{ $product->price }} Edit Delete @endforeach @endsection