@extends('user.layout') {{-- this style will be applied when the direction of language is right-to-left --}} @php $selLang = \App\Models\Language::where([ ['code', \Illuminate\Support\Facades\Session::get('currentLangCode')], ])->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') }}
@includeIf('user.partials.languages')
{{ __('Add_Category') }}
@if (count($categories) == 0)

{{ __('NO GALLERY CATEGORY FOUND!') }}

@else
@foreach ($categories as $category) @endforeach
{{ __('Name') }} {{ __('Status') }} {{ __('Serial_Number') }} {{ __('Actions') }}
{{ strlen($category->name) > 100 ? convertUtf8(substr($category->name, 0, 100)) . '...' : convertUtf8($category->name) }} @if ($category->status == 1)

{{ __('Active') }}

@else

{{ __('Deactive') }}

@endif
{{ $category->serial_number }} {{ __('Edit') }}
@csrf
@endif
{{-- create modal --}} @include('user.gallery.create-category') {{-- edit modal --}} @include('user.gallery.edit-category') @endsection @section('scripts') @endsection {{-- C:\laragon\www\businesso\public\assets\user\js\gallery.js --}}