88 lines
2.6 KiB
PHP
88 lines
2.6 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class transaction
|
|
{
|
|
private static $list_transaction =[
|
|
[
|
|
"orderId" => "INV-1234",
|
|
"customer" => "Jilhan",
|
|
"seller" => "dodo",
|
|
"total" => "Rp. 15000",
|
|
"date" => "July 19, 2023 ",
|
|
"status"=>"paid"
|
|
],
|
|
[
|
|
"orderId" => "INV-0000",
|
|
"customer" => "hmmm",
|
|
"seller" => "dodo",
|
|
"total" => "Rp. 11000",
|
|
"date" => "August 19, 2023 ",
|
|
"status"=>"pending"
|
|
],
|
|
[
|
|
"orderId" => "INV-2313",
|
|
"customer" => "nurul",
|
|
"seller" => "dido",
|
|
"total" => "Rp. 15000",
|
|
"date" => "July 29, 2023 ",
|
|
"status"=>"unpaid"
|
|
],
|
|
[
|
|
"orderId" => "INV-5664",
|
|
"customer" => "raihan",
|
|
"seller" => "dedo",
|
|
"total" => "Rp. 14000",
|
|
"date" => "July 18, 2023 ",
|
|
"status"=>"pending"
|
|
],
|
|
[
|
|
"orderId" => "INV-9090",
|
|
"customer" => "testing",
|
|
"seller" => "dado",
|
|
"total" => "Rp. 45000",
|
|
"date" => "June 19, 2023 ",
|
|
"status"=>"paid"
|
|
]
|
|
|
|
];
|
|
|
|
private static $detail_transaction=[
|
|
[
|
|
"idTransaction" => "INV-76899",
|
|
"side" =>"SELL",
|
|
"marketPair"=>"IDR",
|
|
"email" =>"JilhanHaura07@gmail.com",
|
|
"amountTransaction" => "Rp. 900000",
|
|
"feeTransaction" =>"10%",
|
|
"total" => "68,00989.00 IDR",
|
|
"paymentDetail" => "Bank",
|
|
"bankName" => "BNI",
|
|
"accountNumber" => "123",
|
|
"statusTransaction" => "Success"
|
|
|
|
|
|
// "tracking_number" => "09102919209",
|
|
// "orderId" => "INV-9090",
|
|
// "status"=>"Pending",
|
|
// "estimated" => "June 20, 2023",
|
|
// "tracking_detail1"=> "August 10: processed payment",
|
|
// "tracking_detail2"=> "August 12: payment in system",
|
|
// "tracking_detail3"=> "August 14: payment has been received by the seller",
|
|
],
|
|
|
|
];
|
|
public static function allTransactions()
|
|
{
|
|
return self::$list_transaction;
|
|
}
|
|
|
|
public static function allDetailTransactions()
|
|
{
|
|
return self::$detail_transaction;
|
|
}
|
|
} |