@extends('lay.dnekcab.retsam') @section('title') {{ $page_title }} @endsection @section('css') @endsection @section('page-content')

{{ $agenda->title}}

@switch($agenda->type) @case('tarh') {{ __('agenda.type.tarh') }} @break @case('technical') {{ __('agenda.type.technical') }} @break @case('commission') {{ __('agenda.type.commission') }} @break @default @endswitch

@switch($agenda->status) @case('pending') {{ __('agenda.status.pending') }} @break @case('inprogress') {{ __('agenda.status.inprogress') }} @break @case('complete') {{ __('agenda.status.complete') }} @break @case('archive') {{ __('agenda.status.archive') }} @break @default @endswitch

{{ getHijriDate($agenda->created_at) }}

{{ $agenda->time ?? ''}}

{{ $agenda->location ?? ''}}

{{ $agenda->participant ?? ''}}

{{ $agenda->description}}

@php $i = 1; $isBeforeApproved = true; @endphp
@if($agenda->action_before == 'approve' && $isBeforeApproved) @endif @if($agenda && $agenda->matters) @foreach($agenda->matters as $matter) @php $isBeforeApproved = $matter->committee_decision == null ? false : true; @endphp @if($agenda->action_before == 'approve' && $isBeforeApproved) @endif @endforeach @endif
{{ __('global.no') }} {{ __('matter.item') }} {{ __('matter.organization_slash_company') }} {{ __('matter.timing') }}{{ __('matter.committee_decission') }}
{{ $i++; }} {{ $matter->matterName->title }}
    @foreach ($matter->organization_names as $organizationName)
  1. {{ $organizationName }}
  2. @endforeach
{{ $matter->timing }} {{ __('global.minute') }}{{ $matter->committee_decision }}

{{__('agenda.directorate_deputy_decision_before_decission')}}


@if($agenda->action_before_by != null)
@php $actionUser = \App\Models\User::find($agenda->action_before_by); $date = \Carbon\Carbon::parse($agenda->action_before_at != null ? $agenda->action_before_at : ''); @endphp
{{ $actionUser->name }}
{{ $actionUser->name ?? '' }}
@if($agenda->action_before == 'approve') Approved @else Declined @endif

{{ formatVertaDate($date->timestamp) }}

@else

{{ __('agenda.waiting_for_directorate_deputy_action') }}

@if(auth()->user()->hasPermissionTo('Agenda - Action Agenda'))
@csrf
@endif
@endif @if($agenda->action_before == 'approve' && $isBeforeApproved)

{{__('agenda.directorate_deputy_decision_after_decission')}}


@if($agenda->action_after_by != null)
@php $actionUser = \App\Models\User::find($agenda->action_after_by); $date = \Carbon\Carbon::parse($agenda->action_after_at != null ? $agenda->action_after_at : ''); @endphp
{{ $actionUser->name }}
{{ $actionUser->name ?? '' }}
@if($agenda->action_after == 'approve') Approved @else Declined @endif

{{ formatVertaDate($date->timestamp) }}

@else

{{ __('agenda.waiting_for_directorate_deputy_action') }}

@if(auth()->user()->hasPermissionTo('Agenda - Action Agenda'))
@csrf
@endif
@endif @endif
@endsection @section('js') @endsection