@extends('layouts.admin.app') @section('title',translate('messages.Add new 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]) @endif @if ($language) @foreach(json_decode($language) as $lang)
@endforeach @else
@endif
image
* ( {{translate('messages.ratio')}} 1:1)
{{translate('messages.category')}} {{translate('messages.list')}}{{$categories->total()}}
@csrf
@foreach($categories as $key=>$category) @endforeach
{{ translate('messages.sl') }} {{translate('messages.id')}} {{translate('messages.name')}}
{{translate('messages.priority')}}
{{translate('messages.status')}} {{translate('messages.action')}}
{{$key+$categories->firstItem()}}
{{$category->id}}
{{Str::limit($category['name'], 20,'...')}}
@csrf @method('delete')
@if(count($categories) === 0)
public
{{translate('no_data_found')}}
@endif
@endsection @push('script_2') @endpush