refactor: improve UI responsiveness, add currency formatting to invoice inputs, update address formatting, and refine Docker setup instructions.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user