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

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

{!! $errors->first('workman_id', '')!!}
{!! Form::text('name', isset($certificate->name) ? $certificate->name : old('name'), ['class' => 'form-control', 'id' => 'name']) !!} {!! $errors->first('name', '')!!}
{!! Form::text('issued_date',$issuedDate,['class' => 'form-control', 'id' => 'issued_date']) !!} {!! $errors->first('issued_date', '')!!}
{!! Form::textarea('remark', isset($certificate->remark) ? $certificate->remark : old('remark'), ['class' => 'form-control', 'id' => 'remark', 'rows' => 2, 'style' => 'resize:none;']) !!} {!! $errors->first('remark', '')!!}
{!! Form::text('valid_date',$validDate, ['class' => 'form-control', 'id' => 'valid_date']) !!} {!! $errors->first('valid_date', '')!!}
@if($certificate->attachments) @foreach($certificate->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[]', '')!!} {!! $errors->first('attachments.*', '')!!}
{!! Form::close() !!} @endsection @push('footer-script') @endpush