@extends('layouts.master') @section('content') @push('header_styles') @endpush
@component('components.breadcrumb') @slot('title') @lang('principle.viewtitle') @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('principle.create') }} @endslot @endif @slot('action_button1_class') btn-primary @endslot @endcomponent

@lang('principle.managetitle')


@php $i=1; @endphp @if(isset($data)) @foreach($data as $d) @endforeach @endif
# @lang('principle.type') @lang('principle.name') @lang('principle.image') @lang('common.action')
{{ $i++ }} @if($d->type == 1) @lang('principle.principal') @endif @if($d->type == 2) @lang('principle.president') @endif @if($d->type == 3) @lang('principle.minister_of_state') @endif @if($d->type == 4) @lang('principle.chairman') @endif @if($lang == 'en'){{ $d->name ?: $d->name_bn}}@else {{$d->name_bn ?: $d->name}}@endif
id) }}">@lang('common.edit')
@csrf @method('DELETE')
@push('footer_scripts') @endpush @endsection