@if($agendas->isEmpty())
@else
@if(auth()->user()->hasPermissionTo('Agenda - View Agenda') || auth()->user()->hasPermissionTo('Agenda - Edit Agenda') || auth()->user()->hasPermissionTo('Agenda - Delete Agenda')) @endif @php $counter = ($agendas->currentPage() - 1) * $agendas->perPage() + 1; @endphp @foreach($agendas as $agenda) @if(auth()->user()->hasPermissionTo('Agenda - View Agenda')) @endif @if(auth()->user()->hasPermissionTo('Agenda - Edit Agenda')) @endif @if(auth()->user()->hasPermissionTo('Agenda - Delete Agenda')) @endif @endforeach
{{ __('global.no')}} {{ __('agenda.title')}} {{ __('agenda.description')}} {{ __('agenda.type.header')}} {{ __('agenda.status.header')}} {{ __('agenda.created_date')}}
{{$agenda->title}} {{$agenda->description}} @if($agenda->type == 'tarh') {{ __('agenda.type.tarh') }} @elseif($agenda->type == 'technical') {{ __('agenda.type.technical') }} @elseif($agenda->type == 'commission') {{ __('agenda.type.commission') }} @endif @if($agenda->status == 'pending') {{ __('agenda.status.pending') }} @elseif($agenda->status == 'inprogress') {{ __('agenda.status.inprogress') }} @elseif($agenda->status == 'complete') {{ __('agenda.status.complete') }} @else {{ __('agenda.status.archive') }} @endif {{ getHijriDate($agenda->created_at) }} status == 'pending') href="{{ route('editAgenda', ['id'=> encryption($agenda->id) ]) }}" @endif data-toggle="tooltip" title="{{ __('agenda.edit')}}" class="btn btn-outline-secondary custom-a btn-sm show-edit-btn" style="font-size: 12px; font-weight: bold;" > status == 'pending') data-id="{{ encryption($agenda->id) }}" data-url="deletes_agenda_route" data-toggle="tooltip" title="{{ __('global.delete')}}" @endif >
@endif