@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
@if(isset($edit->p_image)) {{ $edit->p_image }} @endif
@foreach($products as $product) @endforeach
Category Sub Category Product Title Product Image Price Action
{{ $product->category->cat_name }} @if($product->sub_cat_id > 0) {{ $product->subcategory->cat_name }} @else - @endif {{ $product->p_name }} {{ $product->p_name }} {{ $product->price }} Edit Delete
@endsection