$this->id, 'client_id' => $this->client_id, 'name' => $this->client['name'] . ' ' . format_to_currency($this->total_net, $this->currency), 'invoice_number' => $this->invoice_number, 'total' => format_to_currency($this->total_net, $this->currency), 'file_url' => "/oasis/invoice/$this->id", 'client_name' => $this->client['name'], 'mimetype' => 'pdf', 'type' => 'invoice', 'created_at' => format_date($this->created_at, '%d. %B. %Y'), ]; } }