@php if ($signature instanceof \Illuminate\Support\Collection) { $signature = $signature->first(); } if (empty($signature)) { $signature_id = ''; $signature_picture = ''; $signature_name = ''; $signature_position = ''; $signature_purpose = ''; } else { $signature_id = $signature->signature_id; $signature_picture = $signature->signature_picture; $signature_name = $signature->signature_name ?? ''; $signature_position = $signature->signature_position ?? ''; $signature_purpose = $signature->signature_purpose ?? ''; } $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 NAV ===== --}} เซ็นสด Import จากไฟล์ {{-- ===== TAB 1: เซ็นสด ===== --}} ชื่อ-นามสกุล (ดึงจากระบบอัตโนมัติ) Draw your online signature CLEAR {{-- ===== TAB 2: Import + Cropper ===== --}} {{-- Step 1: เลือกไฟล์ --}} เลือกไฟล์ที่มีลายเซ็น (PDF / รูปภาพ) โหลดไฟล์ กำลังแปลงไฟล์ กรุณารอสักครู่... {{-- Step 2: Cropper --}} ลากเลือกพื้นที่ลายเซ็น แล้วกด "Crop ลายเซ็น" เปลี่ยนไฟล์ {{-- Zoom Toolbar --}} Zoom: + − Fit | Scroll เพื่อ zoom {{-- รูปที่จะ crop --}} Crop ลายเซ็น Reset {{-- Step 3: ผลลัพธ์ --}} ผลลัพธ์การ Crop — ตรวจสอบแล้วกรอกข้อมูล ลายเซ็นที่ได้ Crop ใหม่ ชื่อ-นามสกุล (กรอกเอง) ตำแหน่ง (กรอกเอง) ใช้ลายเซ็นนี้ {{-- end tab-import --}} {{-- ===== วัตถุประสงค์ของลายเซ็น ===== --}} วัตถุประสงค์ของลายเซ็นนี้ (ใช้สำหรับอะไร) {{-- ===== Save Button ===== --}} Save Signature @endsection @section('script') @endsection