@extends('layouts.master') @section('content') @push('header_styles') @endpush
@component('components.breadcrumb') @slot('title') @lang('testimonial.index_title') @endslot @slot('breadcrumb1') @lang('common.dashboard') @endslot @slot('breadcrumb1_link') {{ route('dashboard') }} @endslot @if (\App\Traits\RolePermissionTrait::checkRoleHasPermission('role', 'create')) @slot('action_button1') @lang('common.add_new') @endslot @slot('action_button1_link') {{ route('testimonial.create') }} @endslot @endif @slot('action_button1_class') btn-primary @endslot @endcomponent

@lang('testimonial.index_title')


@php $i = 1; @endphp @if(isset($data['student_type'])) @foreach ($data['student_type'] as $v) @foreach ($data['data'] as $d) @if($d->student_type == $v->student_type) @endif @endforeach @endforeach @endif
# @lang('testimonial.date') @lang('testimonial.title') @lang('testimonial.student_name') @lang('testimonial.student_status') @lang('testimonial.session') @lang('testimonial.year') @lang('testimonial.roll_no') @lang('testimonial.reg_no') @lang('testimonial.gpa') @lang('common.action')
@if($v->student_type == 1) General @else Vocational @endif
{{ $i++ }} {{ App\Traits\DateFormat::DbtoDate('-',$d->date) }} {{ $d->title }} {{ $d->student_name }} @if($d->student_status == 1) Regular @elseif($d->student_status == 2) Irregular @else Private @endif {{ $d->session }} {{ $d->year }} {{ $d->roll_no }} {{ $d->reg_no }} {{ $d->gpa }} @lang('testimonial.show_testimonial') @lang('common.edit')
@csrf @method('DELETE')
@push('footer_scripts') @endpush @endsection