@extends('layouts.dashboard') @section('title', 'QR Code Generator') @section('page-title', 'QR Code Generator') @section('page-subtitle', 'Buat QR Code dengan preview langsung') @php $typeIcons = [ 'url' => 'link', 'text' => 'text', 'wifi' => 'wifi', 'email' => 'mail', 'phone' => 'phone', 'whatsapp' => 'whatsapp', 'sms' => 'smartphone', 'vcard' => 'user', 'geo' => 'globe', 'event' => 'clock', ]; $moduleStyles = [ 'classic' => 'Kotak klasik', 'rounded' => 'Kotak bulat', 'dots' => 'Titik', 'diamond' => 'Belah ketupat', 'classy' => 'Kotak elegan', 'classy-rounded' => 'Elegan bulat', ]; $modulePreviews = [ 'classic' => '', 'rounded' => '', 'dots' => '', 'diamond' => '', 'classy' => '', 'classy-rounded' => '', ]; $cornerStyles = [ 'square' => 'Kotak', 'rounded' => 'Melengkung', 'circle' => 'Lingkaran', ]; $cornerPreviews = [ 'square' => '', 'rounded' => '', 'circle' => '', ]; $frameStyles = [ 'none' => ['name' => 'Tanpa Bingkai', 'category' => 'Dasar', 'description' => 'QR murni tanpa dekorasi tambahan.'], 'classic' => ['name' => 'Classic Frame', 'category' => 'Esensial', 'description' => 'Bingkai persegi tipis dengan CTA di bawah QR.'], 'rounded' => ['name' => 'Rounded Frame', 'category' => 'Esensial', 'description' => 'Kartu sudut membulat untuk identitas bisnis.'], 'pill' => ['name' => 'Pill CTA', 'category' => 'Esensial', 'description' => 'Label kapsul minimalis di bawah QR.'], 'top-banner' => ['name' => 'Top Banner', 'category' => 'Promosi', 'description' => 'Banner atas menonjol dengan area CTA jelas.'], 'speech' => ['name' => 'Speech Bubble', 'category' => 'Sosial', 'description' => 'Gelembung percakapan dengan pointer visual.'], 'ticket' => ['name' => 'Ticket Frame', 'category' => 'Acara', 'description' => 'Tiket acara dengan perforasi dekoratif.'], 'circle' => ['name' => 'Circle Badge', 'category' => 'Produk', 'description' => 'Badge lingkaran dengan area QR persegi aman.'], 'double' => ['name' => 'Double Line', 'category' => 'Premium', 'description' => 'Dua garis konsentris untuk kesan profesional.'], 'social' => ['name' => 'Social Card', 'category' => 'Sosial', 'description' => 'Kartu sosial dengan judul dan CTA.'], 'menu' => ['name' => 'Menu Card', 'category' => 'Kuliner', 'description' => 'Kartu menu restoran dengan judul dan CTA.'], ]; $frameCategories = ['Esensial', 'Promosi', 'Sosial', 'Acara', 'Produk', 'Premium', 'Kuliner']; $frameTextPresets = [ 'SCAN ME', 'SCAN HERE', 'VISIT WEBSITE', 'FOLLOW US', 'VIEW MENU', 'CONTACT US', 'CHAT WITH US', 'REGISTER HERE', ]; $oldFrameStyle = old('frame_style', 'none'); $oldFrameUsesTitle = in_array($oldFrameStyle, ['social', 'menu'], true); $cornerFollowsQr = old('corner_color_follow', '1') === '1'; $activeType = old('type', 'url'); @endphp @section('content')
Pilih jenis data, isi detailnya, lalu periksa preview sebelum mengunduh.