prepare("UPDATE shipments SET status = :status WHERE id = :id"); $stmt->execute([':status' => $status, ':id' => $shipmentId]); set_flash('success', t('success_status')); header('Location: ' . url_with_lang('admin_dashboard.php')); exit; } } $shipments = []; try { $stmt = db()->query("SELECT * FROM shipments ORDER BY created_at DESC LIMIT 30"); $shipments = $stmt->fetchAll(); } catch (Throwable $e) { $shipments = []; } $flash = get_flash(); render_header(t('admin_dashboard'), 'admin'); ?>
Control shipment status, manage locations, and onboard new users from one place.
= e(t('no_shipments')) ?>
| = e(t('shipper_company')) ?> | = e(t('origin')) ?> | = e(t('destination')) ?> | = e(t('payment_method')) ?> | = e(t('status')) ?> | = e(t('update_status')) ?> |
|---|---|---|---|---|---|
| = e($row['shipper_company']) ?> | = e($row['origin_city']) ?> | = e($row['destination_city']) ?> | = e($row['payment_method'] === 'bank_transfer' ? t('payment_bank') : t('payment_thawani')) ?> | = e(status_label($row['status'])) ?> |