@extends('member-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') {!! Form::model($warningLetter, ['method' => 'post', 'files' => 'true']) !!}
@if(isset($currEmp) && (($currEmp->employee_type=="employee") || ($currEmp->employee_type=="workman") )) @endif {!! $errors->first('type', '')!!}

{!! $errors->first('employee_id', '')!!}

{!! $errors->first('workman_id', '')!!}
{!! $errors->first('reason', '')!!}
{!! Form::text('other_reason', isset($warningLetter->other_reason) ? $warningLetter->other_reason : old('other_reason'),['class' => 'form-control', 'id' => 'other_reason']) !!} {!! $errors->first('other_reason', '')!!}
{!! Form::textarea('description', isset($warningLetter->description) ? $warningLetter->description : old('description'), ['class' => 'form-control', 'id' => 'description', 'rows' => 3, 'style' => 'resize:none;']) !!} {!! $errors->first('description', '')!!}
@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") attachment @elseif($attachment->mime_type=="application/pdf") attachment @else attachment @endif

{{$attachment->file_name}}

@endforeach @endif
{!! $errors->first('attachments[]', '')!!}
{!! Form::close() !!} @endsection @push('footer-script') @endpush