NASER add setting controller & dynamic fee in settings & add send transactions to tahesab in settings

This commit is contained in:
2026-02-09 14:09:19 +03:30
parent cfb5b17ab7
commit 875c1b09b2
7 changed files with 88 additions and 20 deletions
@@ -6,6 +6,7 @@ use App\Http\Controllers\Admin\PriceController;
use App\Http\Controllers\Controller;
use App\Mail\YourMailableClass;
use App\Models\Cnt;
use App\Models\Setting;
use App\Models\ConfigStatic;
use App\Models\Customer;
use App\Models\Price;
@@ -43,7 +44,8 @@ class ReportController extends Controller
public function updatePrise()
{
$difference = config('fee.single');
// $difference = config('fee.single');
$difference = Setting::where('key', 'fee_single')->first()->value;
$lastPrice = Price::latest()->first();
$PriceTriggers = PriceTrigger::where("is_active", true)->get();
foreach ($PriceTriggers as $PriceTrigger) {
@@ -71,7 +73,8 @@ class ReportController extends Controller
public function upDownPrice()
{
$difference = config('fee.single');
// $difference = config('fee.single');
$difference = Setting::where('key', 'fee_single')->first()->value;
$today = Carbon::now()->format("Y-m-d");
$prises = Price::where('date_at', $today)->get("price");
@@ -119,7 +122,8 @@ class ReportController extends Controller
public function lastPrice()
{
$difference = config('fee.single');
// $difference = config('fee.single');
$difference = Setting::where('key', 'fee_single')->first()->value;
// try {