@extends('member-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') {!! Form::model($checkIn, ['method' => isset($checkIn) && $checkIn->id ? 'put' : 'post', 'enctype' => 'multipart/form-data']) !!}
{!! Form::textarea('remarks',isset($checkIn) && $checkIn->remarks ? $checkIn->remarks : old('remarks'), ['class' => 'form-control', 'id' => 'remarks', 'rows' => 6, 'style' => 'resize:none;']) !!} {!! $errors->first('remarks', '')!!}
@if(isset($checkIn) && ($checkIn->id)) {!! Form::textarea("address",isset($checkIn) && $checkIn->in_address ? $address : old('in_address'), ['class' => 'form-control', 'id' => 'in_address', 'rows' => 6, 'readonly', 'style' => 'resize:none;']) !!} @else {!! Form::textarea('in_address',isset($checkIn) && $checkIn->in_address ? $checkIn->in_address : old('in_address'), ['class' => 'form-control', 'id' => 'in_address', 'rows' => 6, 'readonly', 'style' => 'resize:none;']) !!} @endif {!! $errors->first('in_address', '')!!}
@if($checkIn->attachments) @foreach($checkIn->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