@extends('backEnd.layouts.master') @section('title','Subcategory Manage') @section('css') @endsection @section('content')

Subcategories

Add Subcategory
@foreach($data as $key=>$value) @endforeach
SL Parent Category Subcategory Name Status Action
{{$loop->iteration}} @if($value->category) {{$value->category->name}} @else Deleted @endif {{$value->subcategoryName}} @if($value->status==1) Active @else Inactive @endif
{{-- Status Toggle --}} @if($value->status == 1)
@csrf
@else
@csrf
@endif {{-- Edit --}} {{-- Delete --}}
@csrf
@endsection @section('script') @endsection