diff --git a/app/Abstracts/View/Components/Transactions/Show.php b/app/Abstracts/View/Components/Transactions/Show.php index b6569c2d9..b02f6b0d4 100644 --- a/app/Abstracts/View/Components/Transactions/Show.php +++ b/app/Abstracts/View/Components/Transactions/Show.php @@ -299,6 +299,9 @@ abstract class Show extends Component /** @var bool */ public $hideRecurringMessage; + /** @var bool */ + public $hideCreated; + /** * Create a new component instance. * @@ -327,7 +330,7 @@ abstract class Show extends Component string $routeDocumentShow = '', string $routeTransactionShow = '', string $textButtonAddNew = '', bool $hideSchedule = false, bool $hideChildren = false, bool $hideAttachment = false, $attachment = [], - array $connectTranslations = [], string $textRecurringType = '', bool $hideRecurringMessage = false + array $connectTranslations = [], string $textRecurringType = '', bool $hideRecurringMessage = false, bool $hideCreated = false ) { $this->type = $type; $this->transaction = $transaction; @@ -461,6 +464,7 @@ abstract class Show extends Component $this->textRecurringType = $this->getTextRecurringType($type, $textRecurringType); $this->hideRecurringMessage = $hideRecurringMessage; + $this->hideCreated = $hideCreated; } protected function getTransactionTemplate($type, $transactionTemplate) diff --git a/resources/views/components/empty-page.blade.php b/resources/views/components/empty-page.blade.php index e1ade856b..2f0949bf8 100644 --- a/resources/views/components/empty-page.blade.php +++ b/resources/views/components/empty-page.blade.php @@ -46,9 +46,13 @@
  • -

    {{ $suggestion->name }}

    +

    + {{ $suggestion->name }} +

    -
    Enter details and create your first expense easily
    +
    + {{ $suggestion->description ?? '' }} +
    chevron_right diff --git a/resources/views/components/layouts/modules/show/information.blade.php b/resources/views/components/layouts/modules/show/information.blade.php index 2a0b65108..23655263c 100644 --- a/resources/views/components/layouts/modules/show/information.blade.php +++ b/resources/views/components/layouts/modules/show/information.blade.php @@ -6,6 +6,6 @@
    - * {!! trans('modules.information_monthly') !!} + * {!! trans('modules.information_monthly') !!} -
    \ No newline at end of file + diff --git a/resources/views/components/transactions/show/buttons.blade.php b/resources/views/components/transactions/show/buttons.blade.php index fe2a13d6a..2b60820cc 100644 --- a/resources/views/components/transactions/show/buttons.blade.php +++ b/resources/views/components/transactions/show/buttons.blade.php @@ -2,7 +2,7 @@ @if (! $hideButtonAddNew) @can($permissionCreate) - + {{ trans($textButtonAddNew) }} @endcan diff --git a/resources/views/components/transactions/show/content.blade.php b/resources/views/components/transactions/show/content.blade.php index 64d885530..80617c27c 100644 --- a/resources/views/components/transactions/show/content.blade.php +++ b/resources/views/components/transactions/show/content.blade.php @@ -29,10 +29,12 @@ @stack('recurring_message_end') @stack('row_create_start') + @if (! $hideCreated) + @endif @stack('row_create_end') @stack('schedule_start') diff --git a/resources/views/components/transactions/template/default.blade.php b/resources/views/components/transactions/template/default.blade.php index 69b302056..6ae93650b 100644 --- a/resources/views/components/transactions/template/default.blade.php +++ b/resources/views/components/transactions/template/default.blade.php @@ -1,61 +1,61 @@