m
This commit is contained in:
@@ -3,12 +3,7 @@
|
||||
|
||||
@section('content')
|
||||
@php
|
||||
$tpls = [
|
||||
1=>['icon'=>'💌','name'=>'Thư cảm ơn', 'thumb'=>'from-[#FFF9EC] to-[#FFF5DD]','thumbAccent'=>'#FFD066'],
|
||||
2=>['icon'=>'🌸','name'=>'Sakura', 'thumb'=>'from-[#FFF5F9] to-[#FFECF4]','thumbAccent'=>'#F9A8D4'],
|
||||
3=>['icon'=>'⭐','name'=>'Appreciation','thumb'=>'from-[#EFF8FF] to-[#DBEAFE]','thumbAccent'=>'#93C5FD'],
|
||||
4=>['icon'=>'🎉','name'=>'Celebration', 'thumb'=>'from-[#F5F0FF] to-[#EDE9FE]','thumbAccent'=>'#C4B5FD'],
|
||||
];
|
||||
$tpls = config('card_themes');
|
||||
@endphp
|
||||
|
||||
<div class="max-w-[760px] mx-auto w-full pb-12 px-4 lg:px-0">
|
||||
@@ -184,32 +179,25 @@ $tpls = [
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
// ── Theme data ───────────────────────────────────────────────────
|
||||
const T = {
|
||||
1:{icon:'💌',name:'Thư cảm ơn', label:'THANK CARD',
|
||||
deco:'linear-gradient(135deg,#FFF5CC,#FFE8A0)',
|
||||
card:'linear-gradient(145deg,#FFF9EC,#FFFDF7)',
|
||||
border:'#FFE4A0', blob1:'#FFD066', blob2:'#FFAD00',
|
||||
accent:'#B8860B', badgeBg:'rgba(255,176,0,0.15)', wave:'white',
|
||||
footerBorder:'#FFE4A0'},
|
||||
2:{icon:'🌸',name:'Sakura', label:'SAKURA CARD',
|
||||
deco:'linear-gradient(135deg,#FFE8F4,#FFD6EC)',
|
||||
card:'linear-gradient(145deg,#FFF8FB,#FFF3F8)',
|
||||
border:'#FFBCD9', blob1:'#F9A8D4', blob2:'#F472B6',
|
||||
accent:'#be185d', badgeBg:'rgba(244,114,182,0.12)', wave:'white',
|
||||
footerBorder:'#FFBCD9'},
|
||||
3:{icon:'⭐',name:'Appreciation',label:'APPRECIATION',
|
||||
deco:'linear-gradient(135deg,#DBEAFE,#BFDBFE)',
|
||||
card:'linear-gradient(145deg,#F0F8FF,#EAF3FF)',
|
||||
border:'#BFDBFE', blob1:'#93C5FD', blob2:'#60A5FA',
|
||||
accent:'#1d4ed8', badgeBg:'rgba(96,165,250,0.12)', wave:'white',
|
||||
footerBorder:'#BFDBFE'},
|
||||
4:{icon:'🎉',name:'Celebration', label:'CELEBRATION',
|
||||
deco:'linear-gradient(135deg,#EDE9FE,#DDD6FE)',
|
||||
card:'linear-gradient(145deg,#F8F5FF,#F3EFFF)',
|
||||
border:'#DDD6FE', blob1:'#C4B5FD', blob2:'#A78BFA',
|
||||
accent:'#6d28d9', badgeBg:'rgba(167,139,250,0.12)', wave:'white',
|
||||
footerBorder:'#DDD6FE'},
|
||||
};
|
||||
const cardThemesData = @json(config('card_themes'));
|
||||
const T = {};
|
||||
Object.keys(cardThemesData).forEach(id => {
|
||||
const item = cardThemesData[id];
|
||||
T[id] = {
|
||||
icon: item.icon,
|
||||
name: item.name,
|
||||
label: item.label,
|
||||
deco: item.deco_bg,
|
||||
card: item.card_bg,
|
||||
border: item.border_color,
|
||||
blob1: item.blob1,
|
||||
blob2: item.blob2,
|
||||
accent: item.accent_color,
|
||||
badgeBg: item.badge_bg,
|
||||
wave: item.wave,
|
||||
footerBorder: item.footer_border
|
||||
};
|
||||
});
|
||||
|
||||
// ── Theme slugs ──────────────────────────────────────────────────
|
||||
const templateSlugs = {
|
||||
@@ -541,7 +529,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
$.ajax({
|
||||
url:'{{ route("user.store_send") }}', method:'POST', contentType:'application/json',
|
||||
headers:{'X-CSRF-TOKEN':$('meta[name="csrf-token"]').attr('content')},
|
||||
data:JSON.stringify({receiver:msnv,amount:amount}),
|
||||
data:JSON.stringify({
|
||||
receiver: msnv,
|
||||
amount: amount,
|
||||
template_id: parseInt(document.getElementById('template_id').value, 10)
|
||||
}),
|
||||
success:function(res){
|
||||
if(res.success){
|
||||
setButtonLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user