withoutWrapping(); return [ 'date' => $this->created_at != null ? date('d-M-Y h:i A',strtotime($this->created_at)) : '', 'card_number' => ($this->loyaltyCard) ? $this->loyaltyCard->card_number : '', 'invoice' => isset($this->payment->trans_num)? $this->payment->trans_num : '', 'station' => $this->station->description, 'rate' => $this->rate, ]; } }