@extends('layouts.app') @section('title', __('dashboard.Loyalty Settings')) @section('page_heading', __('dashboard.Loyalty Settings')) @section('content')
رجوع
{{-- KPIs --}}
@foreach([ ['icon'=>'fa-solid fa-coins', 'bg'=>'#eff6ff','color'=>'#2563eb','val'=>number_format((float)$pointsPerUnit,2), 'lbl'=>__('dashboard.Points per Currency Unit')], ['icon'=>'fa-solid fa-money-bills', 'bg'=>'#f0fdf4','color'=>'#16a34a','val'=>number_format((float)$pointValue,3), 'lbl'=>__('dashboard.Value of 1 Point')], ['icon'=>'fa-solid fa-bolt','bg'=>'#fffbeb','color'=>'#d97706','val'=>number_format(1000*(float)$pointsPerUnit*(float)$pointValue,2), 'lbl'=>'قيمة 1000 وحدة مصروفة'], ['icon'=>'fa-solid fa-clock-rotate-left', 'bg'=>'#f8fafc','color'=>'#64748b','val'=>$pointsExpiryDays?number_format((int)$pointsExpiryDays).'d':'∞', 'lbl'=>'صلاحية النقاط'], ] as $k)
{{ $k['val'] }}
{{ $k['lbl'] }}
@endforeach
@csrf
{{ __('dashboard.Loyalty Points Configuration') }}
{{ __('dashboard.How many points a customer earns for every 1 unit spent (e.g., 1 point per 1 EGP)') }}
{{ __('dashboard.The monetary value of a single point when redeemed (e.g., 0.05 EGP per point)') }}
`0` أو فارغ = بدون انتهاء. يُستخدم أيضاً كقيمة افتراضية عند توليد كروت الولاء.
{{ __('dashboard.Quick Example') }}
{{ __('dashboard.If a customer spends 1000 EGP, they earn') }} 0 {{ __('dashboard.points') }} — {{ __('dashboard.Those points are worth') }} 0 {{ __('dashboard.EGP') }}
ملاحظات البرنامج
@foreach([ ['fa-solid fa-arrow-trend-up','آلية الاكتساب','كلما ارتفعت قيمة النقاط لكل وحدة زادت سرعة تجميع العميل للنقاط.'], ['fa-solid fa-wallet', 'آلية الاستبدال','قيمة النقطة تحدد الخصم الفعلي، اضبطها بما يناسب هامش الربح.'], ['fa-solid fa-shield-halved', 'اتساق النظام','أي تغيير ينعكس مباشرة على احتساب النقاط في المبيعات والحجوزات.'], ] as [$icon,$title,$text])
{{ $title }}
{{ $text }}
@endforeach
@endsection @section('styles') @endsection @section('scripts') @endsection