@extends('admin.layouts.layouts') @section('title', 'Document Signature') @section('page-css') @endsection @section('content')
Create Signature
{!! Form::open([ 'route' => 'document-signature.store', 'method' => 'POST', 'id' => 'signature-form', 'class' => 'forms-sample', 'enctype' => 'multipart/form-data', ]) !!} @csrf {!! Form::hidden('sign_id', '', ['id' => 'sign_id']) !!}
{!! Form::label('name', 'Name', ['class' => 'form-label']) !!} * {!! Form::text('name', old('name'), [ 'class' => 'form-control', 'placeholder' => 'Enter Name', 'data-parsley-required' => true, 'data-parsley-required-message' => 'Please enter name.', 'data-parsley-errors-container' => '#name_error', ]) !!}
{!! Form::label('designation', 'Designation', ['class' => 'form-label']) !!} * {!! Form::text('designation', old('designation'), [ 'class' => 'form-control', 'placeholder' => 'Enter Designation', 'data-parsley-required' => true, 'data-parsley-required-message' => 'Please enter designation.', 'data-parsley-errors-container' => '#designation_error', ]) !!}
{!! Form::label('documents', 'Documents', ['class' => 'form-label']) !!} * {!! Form::select('documents[]', $documents, '', [ 'id' => 'documents', 'class' => 'form-control select2', 'multiple' => 'multiple', 'data-parsley-required' => true, 'data-parsley-required-message' => 'Please select document.', 'data-parsley-errors-container' => '#documents_error', ]) !!}
{!! Form::label('signature', 'Signature', ['class' => 'form-label']) !!} {!! Form::file('signature', [ 'id' => 'signature', 'class' => 'form-control', 'accept' => 'image/jpeg,image/png,image/jpg', 'data-parsley-max-file-size' => '3', 'data-parsley-file-extension' => 'jpg,jpeg,png', 'data-parsley-errors-container' => '#signature_error', ]) !!} (Allowed file types: JPG, JPEG, PNG, Max: 3MB)
Profile Preview
{{ Form::close() }}
Document Signature List
@if ($signatures->isEmpty())

Records not found!

@else
@foreach ($signatures as $signature) @php $docs = json_decode($signature->documents); @endphp @endforeach
Name Designation Documents Signature Created Show Sign? Actions
{{ $signature->name ?? '-' }} {{ $signature->designation ?? '-' }} @foreach ($docs as $doc) {{ $doc }} @endforeach @if (isset($signature->signature) && !empty($signature->signature) && file_exists(public_path('storage/' . $signature->signature))) Pan Card @else Not Found @endif {{ $signature->created_at->format('d-m-Y') }}
@endif
@endsection @section('page-js') @endsection