feat: add enamad, samandehi and official veterinary trust badges with admin settings
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 190" width="100%" height="100%">
|
||||
<defs>
|
||||
<linearGradient id="enamadBlue" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stop-color="#0284c7"/>
|
||||
<stop offset="100%" stop-color="#0369a1"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<feDropShadow dx="0" dy="4" stdDeviation="4" flood-color="#000" flood-opacity="0.1"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect x="5" y="5" width="150" height="180" rx="16" fill="#ffffff" stroke="#e0f2fe" stroke-width="2" filter="url(#shadow)"/>
|
||||
<!-- Top decorative bar -->
|
||||
<rect x="5" y="5" width="150" height="8" rx="4" fill="url(#enamadBlue)"/>
|
||||
<!-- Enamad 'e' Logo -->
|
||||
<circle cx="80" cy="70" r="42" fill="#f0f9ff" stroke="#0284c7" stroke-width="2"/>
|
||||
<path d="M 62 70 C 62 55 98 52 98 68 C 98 84 62 82 62 70 Z" fill="none" stroke="#0284c7" stroke-width="7" stroke-linecap="round"/>
|
||||
<line x1="56" y1="70" x2="104" y2="70" stroke="#0284c7" stroke-width="7" stroke-linecap="round"/>
|
||||
<path d="M 64 82 C 72 94 92 94 98 86" stroke="#0284c7" stroke-width="6" fill="none" stroke-linecap="round"/>
|
||||
<!-- 2 Stars -->
|
||||
<g fill="#f59e0b" transform="translate(62, 122)">
|
||||
<!-- Star 1 -->
|
||||
<polygon points="10,0 13,7 20,7 15,12 17,19 10,15 3,19 5,12 0,7 7,7"/>
|
||||
<!-- Star 2 -->
|
||||
<polygon points="26,0 29,7 36,7 31,12 33,19 26,15 19,19 21,12 16,7 23,7"/>
|
||||
</g>
|
||||
<!-- Text -->
|
||||
<text x="80" y="156" font-size="12" font-family="sans-serif" font-weight="bold" fill="#0369a1" text-anchor="middle">نماد اعتماد الکترونیکی</text>
|
||||
<text x="80" y="172" font-size="9" font-family="sans-serif" fill="#64748b" text-anchor="middle">وزارت صنعت، معدن و تجارت</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,21 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 190" width="100%" height="100%">
|
||||
<defs>
|
||||
<linearGradient id="goldGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stop-color="#f59e0b"/>
|
||||
<stop offset="100%" stop-color="#b45309"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow2" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<feDropShadow dx="0" dy="4" stdDeviation="4" flood-color="#000" flood-opacity="0.1"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect x="5" y="5" width="150" height="180" rx="16" fill="#ffffff" stroke="#fef3c7" stroke-width="2" filter="url(#shadow2)"/>
|
||||
<rect x="5" y="5" width="150" height="8" rx="4" fill="url(#goldGrad)"/>
|
||||
<!-- Samandehi emblem -->
|
||||
<circle cx="80" cy="70" r="40" fill="#fffbeb" stroke="#d97706" stroke-width="2"/>
|
||||
<polygon points="80,45 88,60 105,60 92,72 97,88 80,78 63,88 68,72 55,60 72,60" fill="url(#goldGrad)"/>
|
||||
<circle cx="80" cy="68" r="8" fill="#ffffff"/>
|
||||
<!-- Text -->
|
||||
<text x="80" y="132" font-size="12" font-family="sans-serif" font-weight="bold" fill="#92400e" text-anchor="middle">نشان ملی ثبت</text>
|
||||
<text x="80" y="150" font-size="10" font-family="sans-serif" font-weight="bold" fill="#d97706" text-anchor="middle">رسانههای دیجیتال</text>
|
||||
<text x="80" y="170" font-size="9" font-family="sans-serif" fill="#64748b" text-anchor="middle">وزارت فرهنگ و ارشاد</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,22 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 190" width="100%" height="100%">
|
||||
<defs>
|
||||
<linearGradient id="amberGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stop-color="#ea580c"/>
|
||||
<stop offset="100%" stop-color="#9a3412"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow4" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<feDropShadow dx="0" dy="4" stdDeviation="4" flood-color="#000" flood-opacity="0.1"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect x="5" y="5" width="150" height="180" rx="16" fill="#ffffff" stroke="#ffedd5" stroke-width="2" filter="url(#shadow4)"/>
|
||||
<rect x="5" y="5" width="150" height="8" rx="4" fill="url(#amberGrad)"/>
|
||||
<!-- Union Crest -->
|
||||
<circle cx="80" cy="70" r="40" fill="#fff7ed" stroke="#c2410c" stroke-width="2"/>
|
||||
<circle cx="80" cy="70" r="28" fill="url(#amberGrad)"/>
|
||||
<path d="M 72 65 Q 80 55 88 65 Q 80 75 72 65" fill="#ffffff"/>
|
||||
<circle cx="80" cy="72" r="4" fill="#ffffff"/>
|
||||
<!-- Text -->
|
||||
<text x="80" y="132" font-size="12" font-family="sans-serif" font-weight="bold" fill="#9a3412" text-anchor="middle">عضویت رسمی</text>
|
||||
<text x="80" y="150" font-size="10" font-family="sans-serif" font-weight="bold" fill="#ea580c" text-anchor="middle">اتحادیه پرورشدهندگان طیور</text>
|
||||
<text x="80" y="170" font-size="9" font-family="sans-serif" fill="#64748b" text-anchor="middle">مجتمع تولیدی مجاز</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,22 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 190" width="100%" height="100%">
|
||||
<defs>
|
||||
<linearGradient id="greenGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stop-color="#10b981"/>
|
||||
<stop offset="100%" stop-color="#047857"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow3" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<feDropShadow dx="0" dy="4" stdDeviation="4" flood-color="#000" flood-opacity="0.1"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect x="5" y="5" width="150" height="180" rx="16" fill="#ffffff" stroke="#dcfce7" stroke-width="2" filter="url(#shadow3)"/>
|
||||
<rect x="5" y="5" width="150" height="8" rx="4" fill="url(#greenGrad)"/>
|
||||
<!-- Veterinary caduceus / shield -->
|
||||
<circle cx="80" cy="70" r="40" fill="#f0fdf4" stroke="#059669" stroke-width="2"/>
|
||||
<!-- Shield with cross -->
|
||||
<path d="M 80 48 L 98 56 L 98 75 C 98 88 80 94 80 94 C 80 94 62 88 62 75 L 62 56 Z" fill="url(#greenGrad)"/>
|
||||
<path d="M 76 60 L 84 60 L 84 68 L 92 68 L 92 74 L 84 74 L 84 82 L 76 82 L 76 74 L 68 74 L 68 68 L 76 68 Z" fill="#ffffff"/>
|
||||
<!-- Text -->
|
||||
<text x="80" y="132" font-size="12" font-family="sans-serif" font-weight="bold" fill="#065f46" text-anchor="middle">پروانه بهداشتی</text>
|
||||
<text x="80" y="150" font-size="10" font-family="sans-serif" font-weight="bold" fill="#059669" text-anchor="middle">سازمان دامپزشکی</text>
|
||||
<text x="80" y="170" font-size="9" font-family="sans-serif" fill="#64748b" text-anchor="middle">تولید بهداشتی و سلامت گله</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -1,11 +1,15 @@
|
||||
<?php
|
||||
$pageTitle = 'تنظیمات فروشگاه و درگاههای مالی';
|
||||
$pageTitle = 'تنظیمات فروشگاه، اینماد و مجوزها';
|
||||
require __DIR__ . '/layout_header.php';
|
||||
?>
|
||||
|
||||
<div class="max-w-3xl mx-auto bg-white rounded-2xl border border-stone-200 p-8 shadow-sm">
|
||||
<div class="max-w-4xl mx-auto bg-white rounded-2xl border border-stone-200 p-8 shadow-sm">
|
||||
<form action="/admin/settings" method="POST" class="space-y-6 text-xs">
|
||||
<h4 class="font-bold text-sm text-stone-900 border-b pb-3">اطلاعات عمومی مزرعه</h4>
|
||||
|
||||
<!-- General Farm Settings -->
|
||||
<h4 class="font-bold text-sm text-stone-900 border-b pb-3 flex items-center gap-2">
|
||||
<i class="fas fa-building text-amber-600"></i> اطلاعات عمومی مزرعه
|
||||
</h4>
|
||||
|
||||
<div>
|
||||
<label class="block font-bold text-stone-700 mb-1">نام کامل مجموعه / مزرعه</label>
|
||||
@@ -28,7 +32,42 @@ require __DIR__ . '/layout_header.php';
|
||||
<input type="text" name="address" value="<?= htmlspecialchars($settings['address'] ?? '') ?>" class="w-full bg-stone-50 border border-stone-300 rounded-xl p-3 text-xs focus:ring-2 focus:ring-amber-500">
|
||||
</div>
|
||||
|
||||
<h4 class="font-bold text-sm text-stone-900 border-b pb-3 pt-4">اطلاعات واریز کارت به کارت</h4>
|
||||
<!-- Trust Badges & Enamad Settings -->
|
||||
<h4 class="font-bold text-sm text-stone-900 border-b pb-3 pt-4 flex items-center gap-2">
|
||||
<i class="fas fa-certificate text-amber-600"></i> تنظیمات اینماد و نمادهای اعتماد و مجوزهای رسمی
|
||||
</h4>
|
||||
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label class="block font-bold text-stone-700 mb-1">کد / لینک اختصاصی اینماد (Enamad):</label>
|
||||
<input type="text" name="enamad_url" value="<?= htmlspecialchars($settings['enamad_url'] ?? '') ?>" placeholder="https://trustseal.enamad.ir/..." class="w-full bg-stone-50 border border-stone-300 rounded-xl p-3 text-xs">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block font-bold text-stone-700 mb-1">کد / لینک نشان ملی ثبت رسانههای دیجیتال (ساماندهی):</label>
|
||||
<input type="text" name="samandehi_url" value="<?= htmlspecialchars($settings['samandehi_url'] ?? '') ?>" placeholder="https://samandehi.ir/..." class="w-full bg-stone-50 border border-stone-300 rounded-xl p-3 text-xs">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label class="block font-bold text-stone-700 mb-1">شماره پروانه بهداشتی سازمان دامپزشکی:</label>
|
||||
<input type="text" name="veterinary_license" value="<?= htmlspecialchars($settings['veterinary_license'] ?? 'شماره: ۱۴۰۲/۹۸۷۶۵۴') ?>" class="w-full bg-stone-50 border border-stone-300 rounded-xl p-3 text-xs">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block font-bold text-stone-700 mb-1">شماره عضویت اتحادیه پرورشدهندگان طیور:</label>
|
||||
<input type="text" name="union_membership" value="<?= htmlspecialchars($settings['union_membership'] ?? 'کد عضویت: ۹۸۴۴-الف') ?>" class="w-full bg-stone-50 border border-stone-300 rounded-xl p-3 text-xs">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label class="block font-bold text-stone-700 mb-1">کد HTML / اسکریپت سفارشی اینماد (اختیاری):</label>
|
||||
<textarea name="enamad_custom_script" rows="3" placeholder="کد جاوااسکریپت اختصاصی اینماد..." class="w-full bg-stone-50 border border-stone-300 rounded-xl p-3 text-xs font-mono"></textarea>
|
||||
</div>
|
||||
|
||||
<!-- Banking Information -->
|
||||
<h4 class="font-bold text-sm text-stone-900 border-b pb-3 pt-4 flex items-center gap-2">
|
||||
<i class="fas fa-credit-card text-amber-600"></i> اطلاعات واریز کارت به کارت
|
||||
</h4>
|
||||
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
<div>
|
||||
@@ -42,8 +81,9 @@ require __DIR__ . '/layout_header.php';
|
||||
</div>
|
||||
|
||||
<div class="pt-4 border-t flex justify-end">
|
||||
<button type="submit" class="px-8 py-3 rounded-xl bg-amber-500 hover:bg-amber-600 text-stone-950 font-black text-xs transition shadow-md">
|
||||
ذخیره تمام تغییرات
|
||||
<button type="submit" class="px-8 py-3.5 rounded-xl bg-amber-500 hover:bg-amber-600 text-stone-950 font-black text-xs transition shadow-md flex items-center gap-2">
|
||||
<i class="fas fa-floppy-disk"></i>
|
||||
<span>ذخیره کلیه تنظیمات و نمادها</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
+58
-3
@@ -1,5 +1,63 @@
|
||||
<?php
|
||||
$footerSettings = \Bildirchin\Models\Setting::getAll();
|
||||
?>
|
||||
<footer class="bg-stone-900 text-stone-300 mt-auto pt-14 pb-8 border-t border-stone-800">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
|
||||
<!-- Trust Badges & Certifications Row -->
|
||||
<div class="mb-12 bg-stone-950/80 rounded-3xl p-6 sm:p-8 border border-stone-800 shadow-xl">
|
||||
<div class="text-center max-w-xl mx-auto mb-6">
|
||||
<span class="text-xs font-bold text-amber-400 uppercase tracking-widest block mb-1">ضمانت خرید و اصالت</span>
|
||||
<h3 class="text-base sm:text-lg font-extrabold text-white">مجوزهای رسمی و نمادهای تاییدشده مزرعه</h3>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-2 sm:grid-cols-4 gap-4 max-w-4xl mx-auto">
|
||||
<!-- Enamad Badge -->
|
||||
<div class="bg-stone-900/90 rounded-2xl p-4 border border-stone-800 hover:border-sky-500/50 transition duration-300 text-center flex flex-col items-center justify-between group shadow-sm">
|
||||
<div class="w-20 h-24 mb-2 flex items-center justify-center">
|
||||
<img src="/assets/images/enamad_badge.svg" alt="اینماد - نماد اعتماد الکترونیکی" class="max-h-full max-w-full object-contain group-hover:scale-105 transition">
|
||||
</div>
|
||||
<div class="pt-2 border-t border-stone-800/80 w-full">
|
||||
<span class="text-xs font-bold text-white block">اینماد دو ستاره</span>
|
||||
<span class="text-[10px] text-sky-400 mt-0.5 block">تایید هویت و درگاه</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Samandehi Badge -->
|
||||
<div class="bg-stone-900/90 rounded-2xl p-4 border border-stone-800 hover:border-amber-500/50 transition duration-300 text-center flex flex-col items-center justify-between group shadow-sm">
|
||||
<div class="w-20 h-24 mb-2 flex items-center justify-center">
|
||||
<img src="/assets/images/samandehi_badge.svg" alt="نشان ملی ثبت رسانههای دیجیتال" class="max-h-full max-w-full object-contain group-hover:scale-105 transition">
|
||||
</div>
|
||||
<div class="pt-2 border-t border-stone-800/80 w-full">
|
||||
<span class="text-xs font-bold text-white block">نشان ساماندهی</span>
|
||||
<span class="text-[10px] text-amber-400 mt-0.5 block">وزارت فرهنگ و ارشاد</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Vet License Badge -->
|
||||
<div class="bg-stone-900/90 rounded-2xl p-4 border border-stone-800 hover:border-emerald-500/50 transition duration-300 text-center flex flex-col items-center justify-between group shadow-sm">
|
||||
<div class="w-20 h-24 mb-2 flex items-center justify-center">
|
||||
<img src="/assets/images/vet_license_badge.svg" alt="پروانه بهداشتی سازمان دامپزشکی" class="max-h-full max-w-full object-contain group-hover:scale-105 transition">
|
||||
</div>
|
||||
<div class="pt-2 border-t border-stone-800/80 w-full">
|
||||
<span class="text-xs font-bold text-white block">پروانه دامپزشکی</span>
|
||||
<span class="text-[10px] text-emerald-400 mt-0.5 block"><?= htmlspecialchars($footerSettings['veterinary_license'] ?? 'شماره: ۱۴۰۲/۹۸۷۶۵۴') ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Poultry Union Badge -->
|
||||
<div class="bg-stone-900/90 rounded-2xl p-4 border border-stone-800 hover:border-orange-500/50 transition duration-300 text-center flex flex-col items-center justify-between group shadow-sm">
|
||||
<div class="w-20 h-24 mb-2 flex items-center justify-center">
|
||||
<img src="/assets/images/union_badge.svg" alt="عضویت اتحادیه پرورشدهندگان طیور" class="max-h-full max-w-full object-contain group-hover:scale-105 transition">
|
||||
</div>
|
||||
<div class="pt-2 border-t border-stone-800/80 w-full">
|
||||
<span class="text-xs font-bold text-white block">عضو اتحادیه طیور</span>
|
||||
<span class="text-[10px] text-orange-400 mt-0.5 block"><?= htmlspecialchars($footerSettings['union_membership'] ?? 'کد عضویت: ۹۸۴۴-الف') ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 pb-10 border-b border-stone-800">
|
||||
<!-- Col 1: About Farm -->
|
||||
<div>
|
||||
@@ -82,7 +140,6 @@
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// Global helper for ajax add to cart
|
||||
async function addToCart(productId, quantity = 1) {
|
||||
try {
|
||||
const formData = new FormData();
|
||||
@@ -108,8 +165,6 @@
|
||||
cartBtn.appendChild(badge);
|
||||
}
|
||||
badge.innerText = data.cart_count;
|
||||
|
||||
// Show notification toast
|
||||
showToast(data.message || 'به سبد خرید اضافه شد');
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
@@ -119,7 +119,8 @@ require __DIR__ . '/../layout/navbar.php';
|
||||
</div>
|
||||
|
||||
<!-- Order Review Sidebar -->
|
||||
<div class="lg:col-span-4 bg-white rounded-2xl border border-stone-200 p-6 shadow-sm space-y-5 sticky top-24">
|
||||
<div class="lg:col-span-4 space-y-4 sticky top-24">
|
||||
<div class="bg-white rounded-2xl border border-stone-200 p-6 shadow-sm space-y-5">
|
||||
<h3 class="font-extrabold text-base text-stone-900 border-b pb-3">اقلام فاکتور</h3>
|
||||
|
||||
<div class="max-h-60 overflow-y-auto space-y-3 pr-1 text-xs">
|
||||
@@ -156,6 +157,27 @@ require __DIR__ . '/../layout/navbar.php';
|
||||
<span>ثبت نهایی و دریافت کد رهگیری</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Trust Guarantee Box on Checkout -->
|
||||
<div class="bg-gradient-to-br from-stone-900 to-stone-950 text-white p-5 rounded-2xl border border-stone-800 space-y-3">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center text-lg">
|
||||
<i class="fas fa-shield-halved"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="text-xs font-bold text-white block">خرید تضمینشده و ایمن</span>
|
||||
<span class="text-[10px] text-stone-400">دارای نماد اعتماد و پروانه دامپزشکی</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-2 gap-2 pt-2 border-t border-stone-800 text-[11px] text-stone-300">
|
||||
<div class="flex items-center gap-1.5"><i class="fas fa-check text-emerald-400 text-xs"></i> اینماد رسمی</div>
|
||||
<div class="flex items-center gap-1.5"><i class="fas fa-check text-emerald-400 text-xs"></i> سلامت بهداشتی گله</div>
|
||||
<div class="flex items-center gap-1.5"><i class="fas fa-check text-emerald-400 text-xs"></i> فاکتور معتبر</div>
|
||||
<div class="flex items-center gap-1.5"><i class="fas fa-check text-emerald-400 text-xs"></i> پشتیبانی باربری</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user