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

Testimonials

{{--
--}}
@foreach ($testimonials as $item) @if($item->status == 'active') @elseif($item->status == 'pending' || $item->status == 'inactive') @else @endif @endforeach
TESTIMONIAL UPLOADED BY UPLOADED BY NAME DATE Status
@if ($item->type == 'image') {{ isset($item->attachment) ? $item->attachment : '' }} @elseif($item->type == 'video') {{-- --}} @endif {{-- --}} {{ @$item->description }} {{ @$item->createdBy->user_type ?? 'NA' }} {{ @$item->createdBy->name ?? 'NA' }} {{ date('d-M-Y', strtotime(@$item->created_at)) }}ApprovedPendingRejected @if ($item->status == 'active') @else Approve @endif @if ($item->status == 'active') @endif
@if (count($testimonials) == 0)
No record(s) found!
@endif
{{ $testimonials->appends(request()->input())->links('partials.pagination') }}
@endsection