refactor: improve UI responsiveness, add currency formatting to invoice inputs, update address formatting, and refine Docker setup instructions.

This commit is contained in:
I-Fun
2026-04-05 22:37:51 +07:00
parent 1c2c10d253
commit 59a2724057
11 changed files with 70 additions and 47 deletions

View File

@@ -57,14 +57,19 @@ class Client extends Model
public function getFullAddressAttribute(): string
{
$line3_parts = array_filter([$this->city, $this->state]);
$country_part = array_filter([$this->postal_code, $this->country]);
$country_str = implode(' - ', $country_part);
if ($country_str) {
$line3_parts[] = $country_str;
}
$line3 = implode(', ', $line3_parts);
return collect([
$this->address_line1,
$this->address_line2,
$this->city,
$this->state,
$this->postal_code,
$this->country,
])->filter()->implode(', ');
$line3
])->filter()->implode("\n");
}
public function getInitialsAttribute(): string