@extends('layouts.admin.app') @section('title',translate('messages.Add new sub category')) @push('css_or_js') @endpush @section('content')
@csrf @php($language=\App\Models\BusinessSetting::where('key','language')->first()) @php($language = $language->value ?? null) @php($default_lang = 'en') @if($language) @php($default_lang = json_decode($language)[0])
@foreach(json_decode($language) as $lang)
@endforeach @else
@endif
{{translate('messages.sub_category')}} {{translate('messages.list')}}{{$categories->total()}}
@foreach($categories as $key=>$category) @endforeach
{{ translate('messages.sl') }} {{translate('messages.id')}} {{translate('messages.main')}} {{translate('messages.category')}} {{translate('messages.sub_category')}}
{{translate('messages.priority')}}
{{translate('messages.status')}} {{translate('messages.action')}}
{{$key+$categories->firstItem()}} {{$category->id}} {{Str::limit($category->parent['name'],20,'...')}} {{Str::limit($category->name,20,'...')}}
@csrf @method('delete')
@if(count($categories) === 0)
public
{{translate('no_data_found')}}
@endif
{{-- {{--
1-15 of 380
--}}
{!! $categories->links() !!}
@endsection @push('script_2') @endpush