@extends('layouts.app') @section('title') @if( ! empty($title)) {{ $title }} | @endif @parent @endsection @section('content')
@include('admin.sidebar_menu')
@if( ! empty($title))

{{ $title }}

@endif @include('admin.flash_msg')
@csrf
{!! $errors->has('category_name')? '

'.$errors->first('category_name').'

':'' !!}
{!! $errors->has('description')? '

'.$errors->first('description').'

':'' !!}

{!! $errors->has('category_type')? '

'.$errors->first('category_type').'

':'' !!}
@foreach($categories as $category) @endforeach
@lang('app.category_name') (@lang('app.total_ads'))
{{ $category->category_name }} ({{ $category->product_count() }})
@if($category->sub_categories->count() > 0) @foreach($category->sub_categories as $sub_cat)

-- {{ $sub_cat->category_name }} ({{ $sub_cat->product_count() }})
@endforeach @endif
@endsection @section('page-js') @endsection