diff --git a/app/Http/Controllers/RefundUserController.php b/app/Http/Controllers/RefundUserController.php new file mode 100644 index 00000000..ea3808fd --- /dev/null +++ b/app/Http/Controllers/RefundUserController.php @@ -0,0 +1,66 @@ + + */ + public function rules(): array + { + return [ + // + ]; + } +} diff --git a/app/Http/Requests/UpdateRefundUserRequest.php b/app/Http/Requests/UpdateRefundUserRequest.php new file mode 100644 index 00000000..6d2f78fe --- /dev/null +++ b/app/Http/Requests/UpdateRefundUserRequest.php @@ -0,0 +1,28 @@ + + */ + public function rules(): array + { + return [ + // + ]; + } +} diff --git a/app/Models/ContactUser.php b/app/Models/ContactUser.php new file mode 100644 index 00000000..09b8483f --- /dev/null +++ b/app/Models/ContactUser.php @@ -0,0 +1,41 @@ +"npannisa@gmail.com", + "name"=> "Nurul Prima", + "phone"=>"+6284964524" + ], + [ + "email"=>"asfii@gmail.com", + "name"=> "Rayhan Arevii", + "phone"=>"+6284974524" + ], + [ + "email"=>"Raihan@gmail.com", + "name"=> "Rayhan Surya", + "phone"=>"+6264746472" + ], + [ + "email"=>"viona@gmail.com", + "name"=> "Viona Denopta", + "phone"=>"+6264776747" + ], + [ + "email"=>"fatur@gmail.com", + "name"=> "Fatur Rahman", + "phone"=>"+62647864733" + ], + + ]; + public static function ContactUser(){ + return self::$ContactUser; + } +} diff --git a/app/Models/RefundUser.php b/app/Models/RefundUser.php new file mode 100644 index 00000000..a39d0677 --- /dev/null +++ b/app/Models/RefundUser.php @@ -0,0 +1,42 @@ + "INV-1234", + "Customer" => "npannisa", + "seller" => "rayhan", + "Total" => " Rp.200.000", + "dueDate"=>"29 juni 2023", + "status"=>"diterima", + "uploadBukti" => "5.jpg" + ], + [ + "orderId" => "INV-1234", + "Customer" => "hantu", + "seller" => "rayhan", + "Total" => " Rp.200.000", + "dueDate"=>"29 juni 2023", + "status"=>"ditolak", + "uploadBukti" => "5.jpg" + ], + [ + "orderId" => "INV-1234", + "Customer" => "pocong", + "seller" => "rayhan", + "Total" => " Rp.200.000", + "dueDate"=>"29 juni 2023", + "status"=>"diterima", + "uploadBukti" => "5.jpg" + ], + ]; + public static function HistoryRefundUser(){ + return self::$history_refundUser; + } +} diff --git a/app/Models/TransactionPembeli.php b/app/Models/TransactionPembeli.php new file mode 100644 index 00000000..d8b19678 --- /dev/null +++ b/app/Models/TransactionPembeli.php @@ -0,0 +1,24 @@ + "INV-1234", + "Customer" => "Nurul Prima", + "seller" => "Jilhan", + "total" => "Rp.500.000", + "dueDate"=>"29 juni 2023", + "status"=>"pending", + "action" => "" + ], + ]; + public static function HistoryTransactionPembeli(){ + return self::$history_transactionPembeli; + } +} diff --git a/app/Models/TransactionPenjual.php b/app/Models/TransactionPenjual.php new file mode 100644 index 00000000..dbca18ef --- /dev/null +++ b/app/Models/TransactionPenjual.php @@ -0,0 +1,34 @@ + "INV-1234", + "Customer" => "Nurul Prima", + "seller" => "Jilhan", + "total" => "Rp.500.000", + "dueDate"=>"29 juni 2023", + "status"=>"pending", + "action" => "" + ], + + [ + "orderId" => "INV-1235", + "Customer" => "Nurul Annisa", + "seller" => "Rayhan", + "total" => "Rp.900.000", + "dueDate"=>"29 Juli 2023", + "status"=>"proses", + "action" => "" + ], + ]; + public static function HistoryTransactionPenjual(){ + return self::$history_transactionPenjual; + } +} diff --git a/app/Models/TransactionUser.php b/app/Models/TransactionUser.php new file mode 100644 index 00000000..96e6af35 --- /dev/null +++ b/app/Models/TransactionUser.php @@ -0,0 +1,57 @@ + "NPA-9876", + "orderId" => "INV-1234", + "Customer" => "Nurul Prima", + "seller" => "Jilhan", + "total" => "Rp.500.000", + "dueDate"=>"29 juni 2023", + "status"=>"OnProgress", + "action" => "" + ], + [ + "userId" => "NPA-9879", + "orderId" => "INV-1234", + "Customer" => "Nurul Prima Annisa", + "seller" => "Raihan", + "total" => "Rp.500.000", + "dueDate"=>"29 juni 2025", + "status"=>"Diterima", + "action" => "" + ], + + // [ + // "userId" => "NPA-9877", + // "orderId" => "INV-1235", + // "Customer" => "Nurul Annisa", + // "seller" => "Rayhan", + // "total" => "Rp.900.000", + // "dueDate"=>"29 Juli 2023", + // "status"=>"Pembeli", + // "action" => "" + // ], + + // [ + // "userId" => "NPA-9878", + // "orderId" => "INV-1236", + // "Customer" => "Nurul Prima Annisa", + // "seller" => "Rayhan", + // "total" => "Rp.900.000", + // "dueDate"=>"29 Juli 2023", + // "status"=>"Pembeli", + // "action" => "" + // ], + ]; + public static function HistoryTransaction(){ + return self::$history_transaction; + } +} diff --git a/app/Models/transaction.php b/app/Models/transaction.php index d19c5748..3a3ab8f3 100644 --- a/app/Models/transaction.php +++ b/app/Models/transaction.php @@ -7,71 +7,68 @@ use Illuminate\Database\Eloquent\Model; class transaction { - private static $list_transaction =[ + private static $list_transaction = [ [ - "orderId" => "INV-1234", - "customer" => "Jilhan", - "seller" => "dodo", - "total" => "Rp. 15000", - "date" => "July 19, 2023 ", - "status"=>"paid" + '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-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-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-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" - ] + 'orderId' => 'INV-9090', + 'customer' => 'testing', + 'seller' => 'dado', + 'total' => 'Rp. 45000', + 'date' => 'June 19, 2023 ', + 'status' => 'paid', + ], + ]; - ]; + private static $detail_transaction = [ + [ + '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', + ], + ]; - private static $detail_transaction=[ - [ - "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 allTransactions() - { - return self::$list_transaction; - } - - public static function allDetailTransactions() - { - return self::$detail_transaction; - } + public static function allDetailTransactions() + { + return self::$detail_transaction; + } } diff --git a/app/Policies/RefundUserPolicy.php b/app/Policies/RefundUserPolicy.php new file mode 100644 index 00000000..d9a71203 --- /dev/null +++ b/app/Policies/RefundUserPolicy.php @@ -0,0 +1,66 @@ + + */ +class RefundUserFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + // + ]; + } +} diff --git a/database/migrations/2023_08_22_140555_create_refund_users_table.php b/database/migrations/2023_08_22_140555_create_refund_users_table.php new file mode 100644 index 00000000..2e3a89cc --- /dev/null +++ b/database/migrations/2023_08_22_140555_create_refund_users_table.php @@ -0,0 +1,27 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('refund_users'); + } +}; diff --git a/database/seeders/RefundUserSeeder.php b/database/seeders/RefundUserSeeder.php new file mode 100644 index 00000000..76ea00d6 --- /dev/null +++ b/database/seeders/RefundUserSeeder.php @@ -0,0 +1,17 @@ + + + + + + + + +