@extends('layouts.master') @section('content')
@include('flash::message')


Date: {!! Form::text('issued_at', \Carbon\Carbon::parse($letter->issued_at)->format('Y-m-d'), ['readonly']) !!}

Ref No: {!! Form::text('title', $letter->ref_no, ['readonly', 'style' => 'background-color:transparent;']) !!}

@if(strtolower($letter->type) === 'appreciation')

SUBJECT: OFFICIAL APPRECIATION LETTER


الموضوع: خطاب تقدير رسمي

@elseif(strtolower($letter->type) === 'warning')

SUBJECT: OFFICIAL WARNING LETTER


الموضوع: خطاب تحذير رسمي

@endif

Name: {!! Form::text('staff_profile_id', $letter->stafProfile->name ?? 'N/A', ['readonly']) !!} السيد

Designation: {!! Form::text('staff_profile_id', $letter->stafProfile->staf_type ?? 'N/A', ['readonly']) !!} المسمى الوظيفي

This letter is an Official Warning from the management for unsatisfactory job performance, due to the below reason:

هذه الرسالة هي تحذير رسمي من الإدارة، بشأن الأداء الوظيفي غير المرضي، وذلك للسبب التالي:

Reason: {!! Form::text('title', $letter->title, ['readonly', 'style' => 'width:100%; background-color:transparent;']) !!}


{!! Form::textarea('content', $letter->content, [ 'class' => 'form-control auto-resize', 'readonly', 'style' => 'overflow:hidden; resize:none; width:100%; min-height:100px; border:none; background-color:transparent;' ]) !!}
{{-- Attachments Section --}}
Attached Files
@php $files = $letter->getMedia(); @endphp @if($files->count() > 0) @else

No files attached.

@endif

From: {!! Form::text('issued_by', $letter->issued_by ?? 'N/A', ['readonly']) !!}

TO: {!! Form::text('staff_profile_id', $letter->stafProfile->name ?? 'N/A', ['readonly']) !!}


Acknowledgement & Acceptance

I have read, understood and accepted the above terms & conditions.

Accepted & Noted Finger Print

Signature: ________________________________

Date: ____________________________________

@endsection