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

{{ $section->title }}

@if( $subcategories ) @foreach( $subcategories as $result ) @endforeach @endif
ID Category Name Sub Category Name Sub Category Image Status Action
{{$result['id'] }} @if(!empty($result['category']['name'])) {{$result['category']['name']}} @else @endif {{ucfirst($result['name'])}}
    @if($result['status'] == 1)
  • Active
  • @else
  • Inactive
  • @endif
{{ Form::open(['route' => ['subcategories.destroy', $result['id']], 'method' => 'delete']) }} {{ Form::button('', [ 'type' => 'submit', 'class' => 'btn btn-dim btn-danger']) }} {{ Form::close() }}
@endsection