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

{{ $matter->title}}

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

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

@if($matter->type != 'commission')

{{ $matter->economicDept->name }}

@endif @if($matter->type == 'commission')

@if($matter->is_mosaweba == 'yes') {{ __('global.yes') }} @else {{ __('global.nos') }} @endif

@endif

{{ $matter->organizationName->name ?? '-' }}

@if($matter->is_used == 'yes') {{ __('global.yes') }} @else {{ __('global.nos') }} @endif

{{ getHijriDate($matter->date) }}

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

{{ $matter->description}}

{{ $matter->comments }}

@if($matter->type != 'commission')

{{__('matter.assign_sepcialist')}}


@if($matter->specialist_by == null)

{{ __('matter.waiting_for_economic_dept_to_assign_specialist') }}

@if(auth()->user()->hasPermissionTo('Matter - Assign Matter'))
@csrf
@endif @else
{{ __('matter.specialist_assigned_see_below_action') }}
@endif
@if($matter->specialist_by != null)

{{__('matter.specialist_decision')}}


@if($matter->specialist_action_at == null)

{{ __('matter.waiting_for_specialist_action') }}

@if(auth()->user()->hasPermissionTo('Matter - Specialist Action Matter'))
@csrf
@endif @else @if($matter->specialist_action_at != null)
@php $actionUser = \App\Models\User::find($matter->specialist_by); $date = \Carbon\Carbon::parse($matter->specialist_action_at != null ? $matter->specialist_action_at : ''); @endphp
@if($matter->specialist_action == 'approve') Approved @else Declined @endif

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

@if(!empty($matter->specialist_reason))

{{ __('matter.specialist_decision') }}: {{ $matter->specialist_reason }}

@endif
{{ $actionUser->name }}
{{ $actionUser->name ?? '' }}
@endif @endif
@endif @endif
@endsection @section('js') @endsection