From 6d0170decff64add2f1110ba439f85ad8bd47084 Mon Sep 17 00:00:00 2001 From: jouls Date: Tue, 19 Mar 2024 17:15:54 +0800 Subject: [PATCH 1/2] added payout page and route --- vendor-payouts.php | 447 +++++++++++++++++++++++++++++++++++++++++++ vendor-user-tabs.php | 20 +- 2 files changed, 459 insertions(+), 8 deletions(-) create mode 100644 vendor-payouts.php diff --git a/vendor-payouts.php b/vendor-payouts.php new file mode 100644 index 0000000..6f8659e --- /dev/null +++ b/vendor-payouts.php @@ -0,0 +1,447 @@ + "") { + $_SESSION["isLoggedIn"] = true; + // $customer_data = getCustomerbyLoginId($_SESSION["userId"]); + $vendorLoginId = searchVendorbyLoginId($_SESSION["userId"]); + $vendorLoginIdjson = json_decode($vendorLoginId, true); + // var_dump( $vendorLoginIdjson); + if (isset($vendorLoginIdjson['results'][0])) { + $vendorData = $vendorLoginIdjson['results'][0]; + $vendorId = $vendorData['_id']; + $_SESSION["LoggedInVendorId"] = $vendorId; + } + // $vendor= getVendorbyId($vendorLoginIdjson['results'][0]['_id']); + // // var_dump($vendor); + // $array = json_decode($vendor,true); + // var_dump($array); + +} else { + $_SESSION["isLoggedIn"] = false; + header("location: login.php"); +} +?> + + + + + + + + + oBanana B2B - Elevate Your Business + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + +
+
+
+
+
+
+

Vendor Settings

+
+
+ +
    +
  • Home
  • +
  • Settings
  • +
+ +
+
+
+
+
+
+ + + +
+
+
+ +
+
+ +
+
+ + +
+
+
+
+
+
+
+
+ +
+
+
+
Upcoming Payout
+
+
+ Panel content +
+
+
+
+
+
+
Payout Generation Schedule
+
+
+ Panel content +
+
+
+
+
+
+
Next Payout
+
+
+ Panel content +
+
+
+
+
Payout History
+ + + + + + + + + + + + + + + + + + + + +
AmountBankAccount NumberPayout GenerationStatusAction
PHP 1,165.65 EastWest Bank ****6618 December 08, 2023 Deposited + Details +
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + +
+ +
+
+ 3 +
+
+ + + +
+ + + + +
+
+
+ whatsapp icon +
+
+
+ +
+ + + +
+
+
+

Features

+
+ + icon + +
+
+

Color Scheme

+
    +
  • +
  • +
  • +
  • +
  • +
+
+
+

Backgrounds

+ +
+
+

Full Screen mode

+
+
+
Mode
+
On
+
Off
+
+
+
+
+

Dark mode

+
+
+
Mode
+
On
+
Off
+
+
+
+
+

RTL mode

+
+
+
Rtl
+
On
+
Off
+
+
+
+
+

Clear local storage

+ Clear Cache & Default +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vendor-user-tabs.php b/vendor-user-tabs.php index fc69951..8e77193 100644 --- a/vendor-user-tabs.php +++ b/vendor-user-tabs.php @@ -1,23 +1,27 @@ -
- \ No newline at end of file From b8ac7f827d14b18b58ba4fd0bcea49f170e19adf Mon Sep 17 00:00:00 2001 From: jouls Date: Wed, 20 Mar 2024 14:59:13 +0800 Subject: [PATCH 2/2] added payout table and modal --- vendor-payouts.php | 189 ++++++++++++++++++++++++++++++++++--------- vendor-user-tabs.php | 2 +- 2 files changed, 154 insertions(+), 37 deletions(-) diff --git a/vendor-payouts.php b/vendor-payouts.php index 6f8659e..53bf663 100644 --- a/vendor-payouts.php +++ b/vendor-payouts.php @@ -24,6 +24,17 @@ if ($_SESSION["userId"] <> "") { ?> + @@ -141,61 +152,114 @@ if ($_SESSION["userId"] <> "") {
-
+
-
Upcoming Payout
+
Upcoming Payout
-
- Panel content +
+
+

+
+ + ₱ 0.00 + +
+

+
+ Payout Generation: Tue, Mar 19, 2024 +
+
+ Receive Payout on or before: Wed, Mar 20, 2024 +
+
+ Receipient: Philippine National Bank (PNB) Account ending in 6685 +
+
-
+
-
Payout Generation Schedule
+
Payout Generation Schedule
-
- Panel content +
+
+

+
+ + + Weekly + +
+

+
+
+ Every Tuesday +
+
+
+ Payouts that will fall on holiday will be processed the next banking day +
+
-
+
-
Next Payout
+
Next Payout
-
- Panel content +
+
+

+
+ + ₱ 0.00 + +
+

+
+ Payout Generation: Tue, Mar 25, 2024 +
+
+ Receive Payout on or before: Wed, Mar 26, 2024 +
+
+ Receipient: Philippine National Bank (PNB) Account ending in 6685 +
+
-
-
Payout History
- - - - - - - - - +
+
Payout History
+
+
AmountBankAccount NumberPayout GenerationStatusAction
+ + + + + + + + - - - - - - - - - - -
AmountBankAccount NumberPayout GenerationStatusAction
PHP 1,165.65 EastWest Bank ****6618 December 08, 2023 Deposited - Details -
+ + + + ₱ 1,165.65 + EastWest Bank + ****6618 + December 08, 2023 + Deposited + + Details + + + +
@@ -204,6 +268,59 @@ if ($_SESSION["userId"] <> "") {
+ + + diff --git a/vendor-user-tabs.php b/vendor-user-tabs.php index 8e77193..96944df 100644 --- a/vendor-user-tabs.php +++ b/vendor-user-tabs.php @@ -9,7 +9,7 @@ $current_page = basename($_SERVER['PHP_SELF']);
  • >Uploads
  • >Settings (edit)
  • >Vendor Refund History
  • -
  • >Payouts
  • +
  • >My Payouts