Feat: Adding Contact options to Store Details
This commit is contained in:
@@ -80,10 +80,19 @@ class ManageStoreDetails extends Page implements HasForms
|
||||
TextInput::make('phone')
|
||||
->label('Phone')
|
||||
->tel(),
|
||||
TextInput::make('contact_email')
|
||||
->label('Contact email')
|
||||
->email()
|
||||
->helperText('Receives the contact form, and is shown to customers as the store\'s contact email.'),
|
||||
TextInput::make('mail_from_name')
|
||||
->label('Mail from name')
|
||||
->helperText('The sender name on outgoing emails (MAIL_FROM_NAME).'),
|
||||
]),
|
||||
Section::make('Legal')
|
||||
->description('Shown on invoices and terms pages.')
|
||||
->schema([
|
||||
TranslatedText::make('legal_name')
|
||||
->label('Legal name'),
|
||||
TextInput::make('tax_identifier')
|
||||
->label('Tax ID (ΑΦΜ)'),
|
||||
TextInput::make('registration_number')
|
||||
|
||||
@@ -21,5 +21,6 @@ class StoreDetails extends Model
|
||||
'name' => 'array',
|
||||
'address' => 'array',
|
||||
'bank_transfer_instructions' => 'array',
|
||||
'legal_name' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ class StoreDetailsService
|
||||
'name' => $this->emptyPerLocale(),
|
||||
'address' => $this->emptyPerLocale(),
|
||||
'bank_transfer_instructions' => $this->emptyPerLocale(),
|
||||
'legal_name' => $this->emptyPerLocale(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user