'date', 'end_date' => 'date', 'is_credit_card' => 'boolean', 'is_paid' => 'boolean', 'approved_at' => 'datetime', 'amount' => 'decimal:2', 'tax_percent' => 'decimal:2', 'media_fee' => 'decimal:2', 'media_fee_amount' => 'decimal:2', 'media_fee_tax' => 'decimal:2', 'management_fee' => 'decimal:2', 'management_fee_amount' => 'decimal:2', 'management_fee_tax' => 'decimal:2', 'nett_amount' => 'decimal:2', 'total_spending' => 'decimal:2', ]; public function client(): BelongsTo { return $this->belongsTo(Client::class); } public function linkedInvoice(): BelongsTo { return $this->belongsTo(self::class, 'linked_invoice_id'); } public function linkedInvoices(): HasMany { return $this->hasMany(self::class, 'linked_invoice_id'); } }