@extends('admin.layouts.app') @section('page_content')

@php($sno = 0) @if(count($seriesDeletedlist) > 0) @foreach($seriesDeletedlist as $key => $seriesDeleted) @php($sno = $key+1) @endforeach @endif @if(count($subcategory1Deletedlist) > 0) @foreach($subcategory1Deletedlist as $s1key => $subcategory1Deleted) {{isset($subcategory1Deleted->subcategory_one_series_data) && $subcategory1Deleted->subcategory_one_series_data->name ?? ''}} / {{ucfirst($subcategory1Deleted->pre_table ?? 'Subcategory 1')}} @php($sno = $sno+1) @endforeach @endif @if(count($subcategory2Deletedlist) > 0) @foreach($subcategory2Deletedlist as $s2key => $subcategory2Deleted) @php($sno = $sno+1) @endforeach @endif @if(count($subcategory3Deletedlist) > 0) @foreach($subcategory3Deletedlist as $s3key => $subcategory3Deleted) @php($sno = $sno+1) @endforeach @endif @if(count($subcategory4Deletedlist) > 0) @foreach($subcategory4Deletedlist as $s4key => $subcategory4Deleted) @php($sno = $sno+1) @endforeach @endif
S.no. Series / Sub-Cat1 / Sub-Cat2 / Sub-Cat3 / Sub-Cat4 Main Category No.of product Action
{{$sno+1}} {{ucfirst($seriesDeleted->pre_table ?? 'Series')}}
{{$seriesDeleted->name??''}}
{{$seriesDeleted->category->name??''}} {{count($seriesDeleted->getSeriesOfProductsData($seriesDeleted->category_id,$seriesDeleted->id,0))}} @if(count($seriesDeleted->getSeriesOfProductsData($seriesDeleted->category_id,$seriesDeleted->id,0)) > 0) View and Reassign Products @else @php($restore = route('admin.inactive.item.restore', ['type' => 'series','step'=> 0, 'category_id' => $seriesDeleted->category_id, 'series_id' => $seriesDeleted->id])) @php($delete = route('admin.inactive.item.prement-delete', ['type' => 'series','step'=> 0, 'category_id' => $seriesDeleted->category_id, 'series_id' => $seriesDeleted->id])) @endif
{{$sno+1}}{{$subcategory1Deleted->category->name}} {{count($subcategory1Deleted->getSubCategoryOfProductsData(1, $subcategory1Deleted->category_id, $subcategory1Deleted->id, 0))}} @if(count($subcategory1Deleted->getSubCategoryOfProductsData(1, $subcategory1Deleted->category_id, $subcategory1Deleted->id, 0)) > 0) View and Reassign Products @else @php($restore = route('admin.inactive.item.restore', ['type' => 'subcategory-1','step'=>1, 'category_id' => $subcategory1Deleted->category_id, 'subcategory_id' => $subcategory1Deleted->id])) @php($delete = route('admin.inactive.item.prement-delete', ['type' => 'subcategory-1','step'=>1, 'category_id' => $subcategory1Deleted->category_id, 'subcategory_id' => $subcategory1Deleted->id])) @endif
{{$sno+1}} {{$subcategory2Deleted->subcategory_two_series_data->name}} / {{$subcategory2Deleted->subcategory_one_data->name}} / {{ucfirst($subcategory2Deleted->pre_table ?? 'Subcategory 2')}}
{{$subcategory2Deleted->name}}
{{$subcategory2Deleted->category->name}} {{count($subcategory2Deleted->getSubCategoryOfProductsData(2, $subcategory2Deleted->category_id, $subcategory2Deleted->id, 0))}} @if(count($subcategory2Deleted->getSubCategoryOfProductsData(2, $subcategory2Deleted->category_id, $subcategory2Deleted->id, 0)) > 0) View and Reassign Products @else @php($restore = route('admin.inactive.item.restore', ['type' => 'subcategory-2','step'=>2, 'category_id' => $subcategory2Deleted->category_id, 'subcategory_id' => $subcategory2Deleted->id])) @php($delete = route('admin.inactive.item.prement-delete', ['type' => 'subcategory-2','step'=>2, 'category_id' => $subcategory2Deleted->category_id, 'subcategory_id' => $subcategory2Deleted->id])) @endif
{{$sno+1}} {{$subcategory3Deleted->subcategory_three_series_data->name}} / {{$subcategory3Deleted->subcategory_one_data->name}} / {{$subcategory3Deleted->subcategory_two_data->name}} / {{ucfirst($subcategory3Deleted->pre_table ?? 'Subcategory 3')}}
{{$subcategory3Deleted->name}}
{{$subcategory3Deleted->category->name}} {{count($subcategory3Deleted->getSubCategoryOfProductsData(3, $subcategory3Deleted->category_id, $subcategory3Deleted->id, 0))}} @if(count($subcategory3Deleted->getSubCategoryOfProductsData(3, $subcategory3Deleted->category_id, $subcategory3Deleted->id, 0)) > 0) View and Reassign Products @else @php($restore = route('admin.inactive.item.restore', ['type' => 'subcategory-3','step'=>3, 'category_id' => $subcategory3Deleted->category_id, 'subcategory_id' => $subcategory3Deleted->id])) @php($delete = route('admin.inactive.item.prement-delete', ['type' => 'subcategory-3','step'=>3, 'category_id' => $subcategory3Deleted->category_id, 'subcategory_id' => $subcategory3Deleted->id])) @endif
{{$sno+1}} {{$subcategory4Deleted->subcategory_four_series_data->name}} / {{$subcategory4Deleted->subcategory_one_data->name}} / {{$subcategory4Deleted->subcategory_two_data->name}} / {{$subcategory4Deleted->subcategory_three_data->name}} / {{ucfirst($subcategory4Deleted->pre_table ?? 'Subcategory 4')}}
{{$subcategory4Deleted->name}}
{{$subcategory4Deleted->category->name}} {{count($subcategory4Deleted->getSubCategoryOfProductsData(4, $subcategory4Deleted->category_id, $subcategory4Deleted->id, 0))}} @if(count($subcategory4Deleted->getSubCategoryOfProductsData(4, $subcategory4Deleted->category_id, $subcategory4Deleted->id, 0)) > 0) View and Reassign Products @else @php($restore = route('admin.inactive.item.restore', ['type' => 'subcategory-4','step'=>4, 'category_id' => $subcategory4Deleted->category_id, 'subcategory_id' => $subcategory4Deleted->id])) @php($delete = route('admin.inactive.item.prement-delete', ['type' => 'subcategory-4','step'=>4, 'category_id' => $subcategory4Deleted->category_id, 'subcategory_id' => $subcategory4Deleted->id])) @endif
@endsection