@extends('user.layout') {{-- this style will be applied when the direction of language is right-to-left --}} @php use App\Models\User\Language; $selLang = \App\Models\Language::where([ ['code', \Illuminate\Support\Facades\Session::get('currentLangCode')], ])->first(); $userDefaultLang = Language::where([['user_id', \Illuminate\Support\Facades\Auth::id()], ['is_default', 1]])->first(); $userLanguages = Language::where('user_id', \Illuminate\Support\Facades\Auth::id())->get(); @endphp @if (!empty($selLang) && $selLang->rtl == 1) @section('styles') @endsection @endif @section('content')
{{ __('Gallery_Items') }}
@includeIf('user.partials.languages')
{{ __('Add Item') }}
@if (count($items) == 0)

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

@else
@foreach ($items as $item) @endforeach
{{ __('Title') }} {{ __('Category') }} {{ __('Item_Type') }} {{ __('Featured') }} {{ __('Serial Number') }} {{ __('Actions') }}
{{ strlen($item->title) > 30 ? mb_substr($item->title, 0, 30, 'UTF-8') . '...' : $item->title }} {{ !empty($item->itemCategory->name) ? $item->itemCategory->name : '-' }} {{ $item->item_type == 'image' ? __('Image') : __('Video') }}
@csrf
{{ $item->serial_number }}
@csrf
@endif
{{-- create modal --}} @include('user.gallery.create') {{-- edit modal --}} @include('user.gallery.edit') @endsection @section('scripts') @endsection