@extends('layouts.admin') @section('content-title') {{ __('testimonies.Testimonies managements') }} @endsection @section('content-breadcrumbs') {{ Breadcrumbs::render('admin.testimonies')}} @endsection @section('content')
@if(session()->has('success')) @endif @if(session()->has('deleted')) @endif @if($testimonies->isEmpty())

{{ __('testimonies.No testimonies to load') }}

@endif @foreach($testimonies as $key =>$testimony) @endforeach
# {{ __('testimonies.Full_name') }} {{ __('testimonies.Function') }} {{ __('testimonies.Object') }} {{ __('testimonies.Validate') }}
{{ $testimonies->firstItem()+$key }} {{strtoupper($testimony->first_name) }} {{ ucfirst($testimony->last_name) }} {{ $testimony->function }} {{ str_limit($testimony->object,50) }} {{ $testimony->object }} {{ $testimony->testinony_text }} @if($testimony->validate ==1) {{__('testimonies.Yes') }} @else {{__('testimonies.No') }} @endif {!!Form::open()->attrs(['style'=>'display:inline','class'=>'viewTestimony'])!!} {!!Form::hidden('id')->value($testimony->id)!!} {!!Form::button('')->attrs(['class' => "btn-sm thumbnail", 'type' => 'submit','aria-hidden' => "true"])->color('info')->id($testimonies->firstItem()+$key)!!} {!!Form::close()!!} {!!Form::open()->locale('')->post()->route('admin.testimony.update')->attrs(['style'=>'display:inline'])!!} {!!Form::hidden('id')->value($testimony->id)!!} {!!Form::hidden('validate')->value($testimony->validate)!!} @if($testimony->validate ==1) {!!Form::submit('')->attrs(['class' => 'btn-sm','data-toggle' => "tooltip",'data-placement' =>"top",'data-original-title' => (__('testimonies.Revoke Testimony'))])->color('warning')!!} @else {!!Form::submit('')->attrs(['class' => 'btn-sm','data-toggle' => "tooltip",'data-placement' =>"top",'data-original-title' => (__('testimonies.Validate Testimony'))])->color('success')!!} @endif {!!Form::close()!!} {!!Form::open()->post()->route('admin.testimony.delete')->attrs(['style'=>'display:inline','class'=>'deleteTestimony'])!!} {!!Form::hidden('id')->value($testimony->id)!!} {!!Form::submit('')->attrs(['class' => 'btn-sm'])->color('danger')!!} {!!Form::close()!!}
{{ $testimonies->links() }}
@endsection @section('javascript') @endsection