dashboard-admin/app/Models/transaction.php
2023-08-27 15:21:20 +07:00

93 lines
2.7 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class transaction
{
private static $list_transaction =[
[
"no"=>"1",
"orderId" => "INV-1234",
"customer" => "Jilhan",
"seller" => "dodo",
"total" => "Rp. 15000",
"date" => "July 19, 2023 ",
"status"=>"paid"
],
[
"no"=>"2",
"orderId" => "INV-0000",
"customer" => "hmmm",
"seller" => "dodo",
"total" => "Rp. 11000",
"date" => "August 19, 2023 ",
"status"=>"pending"
],
[
"no"=>"3",
"orderId" => "INV-2313",
"customer" => "nurul",
"seller" => "dido",
"total" => "Rp. 15000",
"date" => "July 29, 2023 ",
"status"=>"unpaid"
],
[
"no"=>"4",
"orderId" => "INV-5664",
"customer" => "raihan",
"seller" => "dedo",
"total" => "Rp. 14000",
"date" => "July 18, 2023 ",
"status"=>"pending"
],
[
"no"=>"5",
"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;
}
}