withoutWrapping(); return [ 'payment_uuid' => $this->payment_uuid, 'date' => $this->paid_at != null ? date('d-M-Y h:i A',strtotime($this->paid_at)) : '', // 'time' => $this->paid_at != null ? date('h:i A',strtotime($this->paid_at)) : '', 'card_number' => isset($this->loyaltyCard->card_number) ? $this->loyaltyCard->card_number : '', 'amount' => $this->amount, ]; } }