@extends('user.layout') @php $selLang = \App\Models\User\Language::where([ ['code', \Illuminate\Support\Facades\Session::get('currentLangCode')], ['user_id', \Illuminate\Support\Facades\Auth::id()], ])->first(); $userDefaultLang = \App\Models\User\Language::where([ ['user_id', \Illuminate\Support\Facades\Auth::id()], ['is_default', 1], ])->first(); $userLanguages = \App\Models\User\Language::where('user_id', \Illuminate\Support\Facades\Auth::id())->get(); @endphp @if (!empty($selLang) && $selLang->rtl == 1) @section('styles') @endsection @endif @section('content')
{{ __('Categories') }}
@if (!is_null($userDefaultLang)) @if (!empty($userLanguages)) @endif @endif
@if (!is_null($userDefaultLang)) {{ __('Add Blog Category') }} @endif
@if (is_null($userDefaultLang))

{{ __('NO LANGUAGE FOUND') }}

@else @if (count($bcategorys) == 0)

{{ __('NO BLOG CATEGORY FOUND') }}

@else
@foreach ($bcategorys as $key => $bcategory) @endforeach
{{ __('Name') }} {{ __('Status') }} {{ __('Serial Number') }} {{ __('Actions') }}
{{ $bcategory->name }} @if ($bcategory->status == 1)

{{ __('Active') }}

@else

{{ __('Deactive') }}

@endif
{{ $bcategory->serial_number }}
@csrf
@endif @endif
@endsection @section('scripts') @endsection