File tree Expand file tree Collapse file tree 3 files changed +27
-7
lines changed Expand file tree Collapse file tree 3 files changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -684,6 +684,10 @@ select {
684
684
margin-top : 2rem ;
685
685
margin-bottom : 2rem ;
686
686
}
687
+ .my-24 {
688
+ margin-top : 6rem ;
689
+ margin-bottom : 6rem ;
690
+ }
687
691
.ml-3 {
688
692
margin-left : 0.75rem ;
689
693
}
@@ -735,6 +739,9 @@ select {
735
739
.mt-5 {
736
740
margin-top : 1.25rem ;
737
741
}
742
+ .mt-24 {
743
+ margin-top : 6rem ;
744
+ }
738
745
.block {
739
746
display : block;
740
747
}
@@ -1078,6 +1085,10 @@ select {
1078
1085
padding-top : 0.75rem ;
1079
1086
padding-bottom : 0.75rem ;
1080
1087
}
1088
+ .px-12 {
1089
+ padding-left : 3rem ;
1090
+ padding-right : 3rem ;
1091
+ }
1081
1092
.py-2\. 5 {
1082
1093
padding-top : 0.625rem ;
1083
1094
padding-bottom : 0.625rem ;
@@ -1090,10 +1101,6 @@ select {
1090
1101
padding-top : 1.5rem ;
1091
1102
padding-bottom : 1.5rem ;
1092
1103
}
1093
- .px-12 {
1094
- padding-left : 3rem ;
1095
- padding-right : 3rem ;
1096
- }
1097
1104
.pt-2 {
1098
1105
padding-top : 0.5rem ;
1099
1106
}
@@ -1255,6 +1262,10 @@ select {
1255
1262
--tw-text-opacity : 1 ;
1256
1263
color : rgb (37 99 235 / var (--tw-text-opacity ));
1257
1264
}
1265
+ .text-green-500 {
1266
+ --tw-text-opacity : 1 ;
1267
+ color : rgb (34 197 94 / var (--tw-text-opacity ));
1268
+ }
1258
1269
.underline {
1259
1270
text-decoration-line : underline;
1260
1271
}
Original file line number Diff line number Diff line change 14
14
}
15
15
</style >
16
16
<body class =" w-full" >
17
- <div class =" font-bold text-lg w-full text-center my-8" >
18
- تمت عملية الدفع بنجاح
17
+ <div class =" font-bold text-lg w-full text-center my-24" >
18
+ @if (isset ($response [' respStatus' ]) && $response [' respStatus' ] == ' A' )
19
+ <p class =" text-green-500" >
20
+ تمت عملية الدفع بنجاح
21
+ </p >
22
+ @else
23
+ <p class =" text-red-500" >
24
+ حدث خطأ أثناء عملية الدفع
25
+ </p >
26
+ @endif
19
27
</div >
20
28
21
29
</body >
Original file line number Diff line number Diff line change 22
22
Route::get ('/transactions ' , [TransactionController::class, 'index ' ])->middleware (['auth ' ])->name ('transactions ' );
23
23
Route::post ('/transactions/create ' , [TransactionController::class, 'create ' ])->middleware (['auth ' ])->name ('new-transaction ' );
24
24
Route::post ('/transactions/{transactionRef}/refund ' , [TransactionController::class, 'refund ' ])->middleware (['auth ' ])->name ('refund-transaction ' );
25
+
25
26
Route::get ('/transaction/finalized ' , function (Request $ request ) {
26
- return view ('transaction-done ' );
27
+ return view ('transaction-done ' )-> with ( ' response ' , $ request -> all ()) ;
27
28
});
28
29
Route::get ('/transactions/options ' , function (Request $ request ) {
29
30
return view ('transaction-options ' );
You can’t perform that action at this time.
0 commit comments