@extends('user.layout') @php $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 @section('content')
{{__('Testimonials')}}
@if(!is_null($userDefaultLang)) @if (!empty($userLanguages)) @endif @endif
{{__('Add Testimonial')}}
@if(is_null($userDefaultLang))

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

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

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

@else
@foreach ($testimonials as $key => $testimonial) @endforeach
{{__('Image')}} {{__('Name')}} {{__('Publish Date')}} {{__('Serial Number')}} {{__('Actions')}}
{{strlen($testimonial->name) > 30 ? mb_substr($testimonial->name, 0, 30, 'UTF-8') . '...' : $testimonial->name}} @php $date = \Carbon\Carbon::parse($testimonial->created_at); @endphp {{$date->translatedFormat('jS F, Y')}} {{$testimonial->serial_number}} {{__('Edit')}}
@csrf
@endif @endif
@endsection