diff --git a/app/Abstracts/View/Components/Transactions/Index.php b/app/Abstracts/View/Components/Transactions/Index.php index 1631cf8b8..fe8e40951 100644 --- a/app/Abstracts/View/Components/Transactions/Index.php +++ b/app/Abstracts/View/Components/Transactions/Index.php @@ -88,6 +88,8 @@ abstract class Index extends Component /** @var string */ public $classBulkAction; + public $hidePaymentMethod; + public $hidePaidAt; public $hideNumber; @@ -172,6 +174,7 @@ abstract class Index extends Component bool $hideSummary = false, array $summaryItems = [], bool $hideSearchString = false, bool $hideBulkAction = false, string $searchStringModel = '', string $bulkActionClass = '', array $bulkActions = [], array $bulkActionRouteParameters = [], string $searchRoute = '', string $classBulkAction = '', + bool $hidePaymentMethod = false, bool $hidePaidAt = false, bool $hideNumber = false, string $classPaidAtAndNumber = '', string $textPaidAt = '', string $textNumber = '', bool $hideStartedAt = false, bool $hideEndedAt = false, string $classStartedAtAndEndedAt = '', string $textStartedAt = '', string $textEndedAt = '', bool $hideType = false, bool $hideCategory = false, string $classTypeAndCategory = '', string $textType = '', string $textCategory = '', @@ -236,6 +239,9 @@ abstract class Index extends Component $this->searchRoute = $this->getIndexRoute($type, $searchRoute); $this->classBulkAction = $this->getClassBulkAction($type, $classBulkAction); + + $this->hidePaymentMethod = $hidePaymentMethod; + /* Document Start */ $this->hidePaidAt = $hidePaidAt; diff --git a/app/View/Components/Transactions/Index/BulkAction.php b/app/View/Components/Transactions/Index/BulkAction.php new file mode 100644 index 000000000..1d507ef10 --- /dev/null +++ b/app/View/Components/Transactions/Index/BulkAction.php @@ -0,0 +1,18 @@ + - - - - - @if ($category_and_contact) - - - - @endif - - - - + diff --git a/resources/views/components/transactions/index/bulk-action.blade.php b/resources/views/components/transactions/index/bulk-action.blade.php new file mode 100644 index 000000000..051d4768b --- /dev/null +++ b/resources/views/components/transactions/index/bulk-action.blade.php @@ -0,0 +1,47 @@ +@props(['category_and_contact', 'real_type', 'contact_type', 'account_currency_code']) + +@if (! $hidePaymentMethod || ! $hideAccount || $category_and_contact || ! $hideCategory || ! $hideContact) +
+ @if (! $hidePaymentMethod) + + @endif + + @if (! $hideAccount) + + @endif + + @if ($category_and_contact) + @if (! $hideCategory) + + @endif + + @if (! $hideContact) + + @endif + @endif + + + +
+@endif