Actualizacuion de Rama Kquiroz

This commit is contained in:
ellecio2
2023-09-04 19:53:37 -04:00
parent d2e9ba53ab
commit 2e99d7b290
2206 changed files with 100145 additions and 467275 deletions

View File

@@ -10,9 +10,9 @@ class WalletCollection extends ResourceCollection
public function toArray($request)
{
return [
'data' => $this->collection->map(function($data) {
'data' => $this->collection->map(function ($data) {
return [
'amount' => format_price ($data->amount) ,
'amount' => single_price(($data->amount)),
'payment_method' => ucwords(str_replace('_', ' ', $data->payment_method)),
'approval_string' => $data->offline_payment ? ($data->approval == 1 ? "Approved" : "Decliend") : "N/A",
'date' => Carbon::createFromTimestamp(strtotime($data->created_at))->format('d-m-Y'),