20 lines
1.0 KiB
PHP
20 lines
1.0 KiB
PHP
<!-- resources/views/signatures/components/signature-pad.blade.php -->
|
|
<div class="text-center border">
|
|
<h3 class="signature-title">{{ ucfirst($type) }}</h3>
|
|
@if (($type === 'penilai' && Auth::user()->sign))
|
|
|
|
<img src="{{ $type === 'penilai'
|
|
? asset('storage/signatures/' . Auth::user()->id . '/' . Auth::user()->sign)
|
|
: asset('storage/signatures/' . $user->id . '/' . $user->sign) }}"
|
|
alt="E-Sign" class="signature-pad" style="width: 400px; height: 220px;">
|
|
@else
|
|
<canvas id="signature-pad-{{ $type }}" class="signature-pad" width="400" height="200"></canvas>
|
|
<div class="button-container py-2">
|
|
<button type="button" id="save-{{ $type }}" class="btn btn-xs btn-primary">Save</button>
|
|
<button type="button" id="clear-{{ $type }}" class="btn btn-xs btn-secondary">Clear</button>
|
|
<button type="button" id="delete-{{$type}}" class="btn btn-xs btn-danger">Delete</button>
|
|
</div>
|
|
<div id="status-{{ $type }}" class="status-message"></div>
|
|
@endif
|
|
</div>
|