@extends('backend.master') @section('table') {{__('testimonials')}} @endsection @section('mainContent') {!! generateBreadcrumb() !!}

@if(!isset($edit)) {{__('frontendmanage.Add New Testimonial') }} @else {{__('common.Update')}} @endif

@if(isset($edit)) @endif
@if(!isset($edit) && permissionCheck('frontend.testimonials_store'))
@csrf @elseif(permissionCheck('frontend.testimonials_edit') && isset($edit)) @csrf @if(isset($edit)) @endif @endif @php $LanguageList = getLanguageList(); @endphp
@if(isModuleActive('FrontendMultiLang')) @endif
@foreach ($LanguageList as $key => $language)
@if ($errors->has('body')) {{ @$errors->first('body') }} @endif
has('author') ? ' autofocus' : '' }} class="primary_input_field name {{ @$errors->has('author') ? ' is-invalid' : '' }}" placeholder="{{ __('frontendmanage.Enter Author Name') }}" type="text" value="{{isset($edit)?$edit->getTranslation('author',$language->code):''}}"> @if ($errors->has('author')) {{ @$errors->first('author') }} @endif
has('profession') ? ' autofocus' : '' }} class="primary_input_field name {{ @$errors->has('profession') ? ' is-invalid' : '' }}" placeholder="{{ __('frontendmanage.Enter Profession') }}" type="text" value="{{isset($edit)?$edit->getTranslation('profession',$language->code):''}}"> @if ($errors->has('profession')) {{ @$errors->first('profession') }} @endif
@endforeach
@php $disable =false; if(!isset($edit)){ if (!permissionCheck('frontend.testimonials_store')){ $disable=true; } $text= __('common.Save'); }else{ if(!permissionCheck('frontend.testimonials_edit')){ $disable=true; } $text= __('common.Update'); } @endphp @if(!$disable)
@endif

{{__('frontendmanage.Testimonial')}}

@foreach($testimonials as $key => $item) @endforeach
{{ __('common.SL') }} {{ __('frontendmanage.Body') }} {{ __('frontendmanage.Author') }} {{ __('frontendmanage.Profession') }} {{ __('common.Image') }} {{ __('frontendmanage.Date') }} {{ __('common.Star') }} {{ __('common.Status') }} {{ __('common.Action') }}
{{ translatedNumber($key+1) }} {{ @$item->body }} {{ @$item->author }} {{ @$item->profession }} {{ showDate(@$item->created_at)}} @for($i=1;$i<=$item->star;$i++) @endfor
@include('backend.partials.delete_modal') @endsection @push('scripts') @endpush