@extends('backend.layouts.app') @section('title') {{ __('testimonial_list') }} @endsection @section('content')
@if (userCan('testimonial.create'))
{{ __('create') }}
@endif
@forelse ($testimonials as $testimonial)
@if ($testimonial->image) user image @else user image @endif

{{ $testimonial->name }}

{{ $testimonial->position }}

@for ($i = 0; $i < $testimonial->stars; $i++) @endfor

{!! Str::limit($testimonial->description, 100, '...') !!}

@if (userCan('testimonial.update') || userCan('testimonial.delete'))
@if (userCan('testimonial.update')) @endif @if (userCan('testimonial.delete'))
@method('DELETE') @csrf
@endif
@endif
@empty
@if (userCan('testimonial.create')) @else @endif
@endforelse
@foreach ($group_testimonials as $key => $lang_testimonials)
@forelse ($lang_testimonials as $testimonial)
@if ($testimonial->image) user image @else user image @endif

{{ $testimonial->name }}

{{ $testimonial->position }}

@for ($i = 0; $i < $testimonial->stars; $i++) @endfor

{!! Str::limit($testimonial->description, 100, '...') !!}

@if (userCan('testimonial.update') || userCan('testimonial.delete'))
@if (userCan('testimonial.update')) @endif @if (userCan('testimonial.delete'))
@method('DELETE') @csrf
@endif
@endif
@empty
@if (userCan('testimonial.create')) @else @endif
@endforelse
@endforeach
@endsection @section('style') @endsection @section('script') @endsection