Fix missing vars.

This commit is contained in:
James Cole
2026-07-16 05:26:35 +02:00
parent 8111006a90
commit df7c6c8d78
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -7,7 +7,7 @@
<div class="row">
<div class="col-9">
<h3 class="card-title">
@if(null !== ($budgetLimit ?? null))
@if(null !== $budgetLimit)
{{ trans('firefly.chart_budget_in_period', ['name' => $budget->name, 'start' => $budgetLimit->start_date->isoFormat($monthAndDayFormat), 'end' => $budgetLimit->end_date->isoFormat($monthAndDayFormat), 'currency' => $budgetLimit->transactionCurrency->name]) }}
@else
{{ trans('firefly.chart_all_journals_for_budget', ['name' => $budget->name]) }}
@@ -28,7 +28,7 @@
<div class="card-body">
<canvas id="budgetOverview" class="wide-chart" height="400" width="100%"></canvas>
</div>
@if(null !== ($budgetLimit ?? null))
@if(null !== $budgetLimit)
<div class="card-footer">
<p class="text-muted">
{{ trans('firefly.chart_budget_in_period_only_currency', ['currency' => $budgetLimit->transactionCurrency->name]) }}
@@ -142,7 +142,7 @@
@if(count($limits) > 0)
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
@foreach($limits as $limit)
<div class="card @if($limit->start_date == $budgetLimit->start_date) card-primary card-outline @endif">
<div class="card @if(null !== $budgetLimit && $limit->start_date === $budgetLimit->start_date) card-primary card-outline @endif">
<div class="card-header">
<h3 class="card-title"><a href="{{ route('budgets.show.limit',[$budget->id,$limit->id]) }}">{{ $limit->start_date->isoFormat($monthAndDayFormat) }} &mdash;{{ $limit->end_date->isoFormat($monthAndDayFormat) }}
</a>
@@ -135,9 +135,9 @@
{{-- DESTINATION ACCOUNT NAME FOR WITHDRAWAL --}}
@if($journal['transaction_type_type'] === 'Withdrawal')
<input class="form-control input-sm" spellcheck="false"
placeholder="@if($journal['destination_type'] !== 'Cash account'){{ $journal['destination_account_name'] }}@endif"
placeholder="@if(array_key_exists('destination_type', $journal) && $journal['destination_type'] !== 'Cash account'){{ $journal['destination_account_name'] }}@endif"
name="destination_name[{{ $journal['transaction_journal_id'] }}]" type="text" autocomplete="off"
value="@if($journal['destination_type'] !== 'Cash account'){{ $journal['destination_account_name'] }}@endif">
value="@if(array_key_exists('destination_type', $journal) && $journal['destination_type'] !== 'Cash account'){{ $journal['destination_account_name'] }}@endif">
@endif
@endif
</td>