@extends('backEnd.master') @section('title') @lang('front_settings.add_testimonial') @endsection @push('css') @endpush @section('mainContent')
@if (isset($add_testimonial)) @if (userPermission('store_testimonial')) @endif @endif
@if (isset($add_testimonial)) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'update_testimonial', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'add-income-update', ]) }} @else @if (userPermission('store_testimonial')) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'store_testimonial', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'add-income', ]) }} @endif @endif

@if (isset($add_testimonial)) @lang('front_settings.edit_testimonial') @else @lang('front_settings.add_testimonial') @endif

@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('designation')) {{ $errors->first('designation') }} @endif
@if ($errors->has('institution_name')) {{ $errors->first('institution_name') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
star_rating == 5 ? "checked" : '' }} /> star_rating == 4 ? "checked" : '' }} /> star_rating == 3 ? "checked" : '' }} /> star_rating == 2 ? "checked" : '' }} /> star_rating == 1 ? "checked" : '' }} />
@if ($errors->has('rating')) {{ $errors->first('rating') }} @endif
@php $tooltip = ''; if (userPermission('store_testimonial')) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
@if (Illuminate\Support\Facades\Config::get('app.app_sync')) @else @endif
{{ Form::close() }}

@lang('front_settings.testimonial_list')

@foreach ($testimonial as $value) @endforeach
@lang('common.name') @lang('front_settings.designation') @lang('front_settings.institution_name') @lang('common.rating') @lang('front_settings.image') @lang('common.action')
{{ @$value->name }} {{ @$value->designation }} {{ @$value->institution_name }}
star_rating == 5 ? 'checked' : '' }} disabled /> star_rating == 4 ? 'checked' : '' }} disabled /> star_rating == 3 ? 'checked' : '' }} disabled /> star_rating == 2 ? 'checked' : '' }} disabled /> star_rating == 1 ? 'checked' : '' }} disabled />
@if (userPermission('testimonial-details')) @lang('common.view') @endif @if (userPermission('edit-testimonial')) @lang('common.edit') @endif @if (Illuminate\Support\Facades\Config::get('app.app_sync')) @lang('common.delete') @else @if (userPermission('for-delete-testimonial')) @lang('common.delete') @endif @endif
@endsection @include('backEnd.partials.data_table_js') @push('script') @endpush