@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
{{trans('emprecords/healthrecords.employee')}} : {{ $currEmp->name }}
{{trans('emprecords/healthrecords.employee_code')}} : {{ $currEmp->employee_code }}
{{trans('emprecords/warning.reason')}} : {{ ucwords($warningLetter->reason) }}
{{trans('emprecords/warning.other_reason')}} : {{ (!is_null($warningLetter->other_reason)) ? $warningLetter->other_reason : '-' }}
@if($warningLetter->warning_letter_pdf) @endif
{{trans('emprecords/healthrecords.employee_type')}} : {{ ucfirst($currEmp->employee_type) }}
{{trans('emprecords/healthrecords.created_by')}} : {{ $createdBy->name }}
{{trans('emprecords/warning.description')}} : {{ $warningLetter->description }}
{{trans('emprecords/warning.warning_letter')}} :
@if($warningLetter->attachments)

{{trans('common/common.attachments')}}

@if($warningLetter->attachments) @foreach($warningLetter->getMedia('attachments') as $attachment)
@if($attachment->mime_type=="application/msword" || $attachment->mime_type=="appplication/docx" || $attachment->mime_type=="appplication/doc") avatar img @elseif($attachment->mime_type=="application/pdf") avatar img @else avatar img @endif

{{$attachment->file_name}}

@endforeach @endif
@endif
@endsection @push('footer-script') @endpush