contact modal updated

This commit is contained in:
Cihan Şentürk
2022-06-07 17:19:49 +03:00
parent 688363f7b4
commit 9e77c9e5d5
9 changed files with 346 additions and 47 deletions

View File

@ -132,8 +132,8 @@ class Contact extends Component
protected function getTextCreateNewContact($type, $textCreateNewContact)
{
if (!empty($textCreateNewContact)) {
return $textCreateNewContact;
if (!empty($textCreateNewContact) && is_array($textCreateNewContact)) {
return trans($textCreateNewContact[0], ['type' => trans_choice($textCreateNewContact[1], 1)]);
}
switch ($type) {

View File

@ -8,6 +8,18 @@ class Country extends Form
{
public $type = 'country';
/** @var string */
public $formGroupClass;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct(string $formGroupClass = 'sm:col-span-3') {
$this->formGroupClass = $formGroupClass;
}
/**
* Get the view / contents that represent the component.
*