@php if ($signature instanceof \Illuminate\Support\Collection) { $signature = $signature->first(); } if (empty($signature)) { $signature_id = ''; $signature_picture = ''; $signature_name = ''; $signature_position = ''; } else { $signature_id = $signature->signature_id; $signature_picture = $signature->signature_picture; $signature_name = $signature->signature_name ?? ''; $signature_position = $signature->signature_position ?? ''; } $breadcrumbs = [ 'Signature List' => url('/signature_list'), 'Signature Editor' => url('/signature_getedit') ]; @endphp @extends('layouts.master') @section('title') Signature Management @endsection @section('style') @endsection @section('content') Signature Editor {{ csrf_field() }} {{-- ===== TAB SWITCHER ===== --}} เซ็นสด Import จากไฟล์ {{-- ===== TAB 1: เซ็นสด ===== --}} Draw your online signature CLEAR {{-- ===== TAB 2: Import + Crop ===== --}} {{-- ขั้นที่ 1: เลือกไฟล์ --}} เลือกไฟล์ที่มีลายเซ็น (PDF / รูปภาพ) โหลดไฟล์ กำลังแปลงไฟล์... {{-- ขั้นที่ 2: Cropper --}} ลากเลือกพื้นที่ลายเซ็น แล้วกด "Crop" เปลี่ยนไฟล์ Crop ลายเซ็น Reset {{-- ขั้นที่ 3: ผลลัพธ์ + กรอกชื่อ/ตำแหน่ง --}} ผลลัพธ์การ Crop ลายเซ็นที่ได้ ชื่อ-นามสกุล (กรอกเอง) ตำแหน่ง (กรอกเอง) ใช้ลายเซ็นนี้ Crop ใหม่ {{-- end tab-import --}} {{-- ===== ปุ่ม Save ===== --}} Save Signature @endsection @section('script') @endsection