diff --git a/admin_company_profile.php b/admin_company_profile.php index 2c0691f..ffd77a6 100644 --- a/admin_company_profile.php +++ b/admin_company_profile.php @@ -14,6 +14,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { validate_csrf_token(); $companyPhone = trim($_POST['company_phone'] ?? ''); $companyAddress = trim($_POST['company_address'] ?? ''); $platformCharge = trim($_POST['platform_charge_percentage'] ?? '0'); + $pricingModel = trim($_POST['pricing_model'] ?? 'percentage'); $timezone = trim($_POST['timezone'] ?? 'UTC'); $updates = [ @@ -22,6 +23,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { validate_csrf_token(); 'company_phone' => $companyPhone, 'company_address' => $companyAddress, 'platform_charge_percentage' => $platformCharge, + 'pricing_model' => $pricingModel, 'timezone' => $timezone, 'terms_en' => trim($_POST['terms_en'] ?? ''), 'terms_ar' => trim($_POST['terms_ar'] ?? ''), @@ -82,6 +84,7 @@ $currentEmail = $settings['company_email'] ?? ''; $currentPhone = $settings['company_phone'] ?? ''; $currentAddress = $settings['company_address'] ?? ''; $currentPlatformCharge = $settings['platform_charge_percentage'] ?? '0'; +$currentPricingModel = $settings['pricing_model'] ?? 'percentage'; $currentTimezone = $settings['timezone'] ?? 'UTC'; $currentLogo = $settings['logo_path'] ?? ''; $currentFavicon = $settings['favicon_path'] ?? ''; @@ -156,6 +159,26 @@ render_header('Company Profile', 'admin', true);
= e(t('created_at')) ?>: = e($shipment['created_at']) ?>
Waiting for truck owners to submit offers.
= t('pending_approval_msg') ?>
Manage your trucks and view their approval status.
Manage your trucks and view available shipments.
No trucks registered yet.
No shipments available at the moment.