@extends('admin.layouts.app') @section('content')

{{ __('admin/testimonials.testimonial_detail') }}

{{ $testimonial->name }}
@if($testimonial->image) {{ $testimonial->name }} @endif
@if($testimonial->link)
@endif
@foreach(config('translatable.locales') as $index => $locale) @php $translation = $testimonial->translations->where('locale', $locale)->first(); @endphp
@if($translation)
@if($translation->description)

{{ $translation->description }}

@endif @if($translation->content)
{{ __('admin/testimonials.detail.testimonial_text') }}
@sanitized($translation->content)
@endif @if(!$translation->description && !$translation->content)
{{ __('admin/testimonials.detail.no_content', ['locale' => strtoupper($locale)]) }}
@endif
@else
{{ __('admin/testimonials.detail.no_translation', ['locale' => strtoupper($locale)]) }}
@endif
@endforeach
{{ __('admin/testimonials.detail.information.title') }}

{{ __('admin/testimonials.detail.information.status') }} @if($testimonial->is_active) {{ __('admin/testimonials.status.active.text') }} @else {{ __('admin/testimonials.status.inactive.text') }} @endif

{{ __('admin/testimonials.detail.information.display_order') }} {{ $testimonial->order }}

{{ $testimonial->created_at->format(__('admin/testimonials.date_format.full')) }}
{{ $testimonial->updated_at->format(__('admin/testimonials.date_format.full')) }}
@canany(['testimonials.edit', 'testimonials.delete'])
{{ __('admin/testimonials.detail.actions_title') }}
@can('testimonials.edit') {{ __('admin/testimonials.actions.edit_this_testimonial') }} @endcan @can('testimonials.delete') @endcan
@endcanany
{{ __('admin/testimonials.detail.available_translations.title') }}
@foreach(config('translatable.locales') as $locale)
@if($testimonial->translate($locale)) {{ strtoupper($locale) }} - {{ __('admin/testimonials.detail.available_translations.translated') }} @else {{ strtoupper($locale) }} - {{ __('admin/testimonials.detail.available_translations.not_translated') }} @endif
@endforeach
@endsection