vendor index logo fixed..
This commit is contained in:
parent
a706610619
commit
ad25f11ae9
@ -88,7 +88,7 @@ abstract class Index extends Component
|
|||||||
public $classBulkAction;
|
public $classBulkAction;
|
||||||
|
|
||||||
/** @var bool */
|
/** @var bool */
|
||||||
public $showPicture;
|
public $showLogo;
|
||||||
|
|
||||||
/** @var bool */
|
/** @var bool */
|
||||||
public $hideName;
|
public $hideName;
|
||||||
@ -179,7 +179,7 @@ abstract class Index extends Component
|
|||||||
bool $hideEmptyPage = false, bool $hideSummary = false, $summaryItems = [], bool $hideSearchString = false, bool $hideBulkAction = false,
|
bool $hideEmptyPage = false, bool $hideSummary = false, $summaryItems = [], bool $hideSearchString = false, bool $hideBulkAction = false,
|
||||||
string $searchStringModel = '', string $bulkActionClass = '', array $bulkActions = [], array $bulkActionRouteParameters = [], string $searchRoute = '',
|
string $searchStringModel = '', string $bulkActionClass = '', array $bulkActions = [], array $bulkActionRouteParameters = [], string $searchRoute = '',
|
||||||
string $classBulkAction = '',
|
string $classBulkAction = '',
|
||||||
bool $showPicture = false, bool $hideName = false, bool $hideTaxNumber = false, string $classNameAndTaxNumber = '', string $textName = '', string $textTaxNumber = '',
|
bool $showLogo = false, bool $hideName = false, bool $hideTaxNumber = false, string $classNameAndTaxNumber = '', string $textName = '', string $textTaxNumber = '',
|
||||||
bool $hideEmail = false, bool $hidePhone = false, string $classEmailAndPhone = '', string $textEmail = '', string $textPhone = '',
|
bool $hideEmail = false, bool $hidePhone = false, string $classEmailAndPhone = '', string $textEmail = '', string $textPhone = '',
|
||||||
bool $hideCountry = false, bool $hideCurrencyCode = false, string $classCountryAndCurrencyCode = '', string $textCountry = '', string $textCurrencyCode = '',
|
bool $hideCountry = false, bool $hideCurrencyCode = false, string $classCountryAndCurrencyCode = '', string $textCountry = '', string $textCurrencyCode = '',
|
||||||
bool $hideOpen = false, bool $hideOverdue = false, string $classOpenAndOverdue = '', string $textOpen = '', string $textOverdue = '',
|
bool $hideOpen = false, bool $hideOverdue = false, string $classOpenAndOverdue = '', string $textOpen = '', string $textOverdue = '',
|
||||||
@ -229,7 +229,7 @@ abstract class Index extends Component
|
|||||||
|
|
||||||
$this->classBulkAction = $this->getClassBulkAction($type, $classBulkAction);
|
$this->classBulkAction = $this->getClassBulkAction($type, $classBulkAction);
|
||||||
|
|
||||||
$this->showPicture = $showPicture;
|
$this->showLogo = $showLogo;
|
||||||
$this->hideName = $hideName;
|
$this->hideName = $hideName;
|
||||||
$this->hideTaxNumber = $hideTaxNumber;
|
$this->hideTaxNumber = $hideTaxNumber;
|
||||||
$this->classNameAndTaxNumber = $this->getClassNameAndTaxNumber($type, $classNameAndTaxNumber);
|
$this->classNameAndTaxNumber = $this->getClassNameAndTaxNumber($type, $classNameAndTaxNumber);
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (! $hideLogo)
|
@if (! $hideLogo)
|
||||||
<x-form.group.file name="logo" label="{{ trans_choice('general.pictures', 1) }}" not-required />
|
<x-form.group.file name="logo" label="{{ trans_choice('general.pictures', 1) }}" not-required />
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
@ -136,15 +136,15 @@
|
|||||||
@stack('name_td_start')
|
@stack('name_td_start')
|
||||||
@if (! $hideName)
|
@if (! $hideName)
|
||||||
<x-slot name="first" class="flex items-center font-medium">
|
<x-slot name="first" class="flex items-center font-medium">
|
||||||
@if ($showPicture)
|
@if ($showLogo)
|
||||||
@if (is_object($item->picture))
|
@if (is_object($item->logo))
|
||||||
<img src="{{ Storage::url($item->picture->id) }}" class="absolute w-6 h-6 bottom-6 rounded-full mr-2 hidden lg:block" alt="{{ $item->name }}" title="{{ $item->name }}">
|
<img src="{{ Storage::url($item->logo->id) }}" class="absolute w-6 h-6 bottom-6 rounded-full mr-2 hidden lg:block" alt="{{ $item->name }}" title="{{ $item->name }}">
|
||||||
@else
|
@else
|
||||||
<img src="{{ asset('public/img/user.svg') }}" class="absolute w-6 h-6 bottom-6 rounded-full mr-2 hidden lg:block" alt="{{ $item->name }}"/>
|
<img src="{{ asset('public/img/user.svg') }}" class="absolute w-6 h-6 bottom-6 rounded-full mr-2 hidden lg:block" alt="{{ $item->name }}"/>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="truncate {{ $showPicture ? ' ltr:pl-8 rtl:pr-8' : '' }}">
|
<div class="truncate {{ $showLogo ? ' ltr:pl-8 rtl:pr-8' : '' }}">
|
||||||
{{ $item->name }}
|
{{ $item->name }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -157,7 +157,7 @@
|
|||||||
|
|
||||||
@stack('tax_number_td_start')
|
@stack('tax_number_td_start')
|
||||||
@if (! $hideTaxNumber)
|
@if (! $hideTaxNumber)
|
||||||
<x-slot name="second" class="w-32 font-normal truncate {{ $showPicture ? ' ltr:pl-8 rtl:pr-8' : '' }}">
|
<x-slot name="second" class="w-32 font-normal truncate {{ $showLogo ? ' ltr:pl-8 rtl:pr-8' : '' }}">
|
||||||
{{ $item->tax_number }}
|
{{ $item->tax_number }}
|
||||||
</x-slot>
|
</x-slot>
|
||||||
@endif
|
@endif
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="content">
|
<x-slot name="content">
|
||||||
<x-contacts.index.content type="vendor" :contacts="$vendors" show-picture />
|
<x-contacts.index.content type="vendor" :contacts="$vendors" show-logo />
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-contacts.script type="vendor" />
|
<x-contacts.script type="vendor" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user