Skip to content

Commit

Permalink
Fix missing route param error on mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
nafiesl committed Jan 12, 2020
1 parent 9de6eaa commit b310c56
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@endcan
</div>
<div style="margin-bottom: 6px;">
@if ($transaction->partner)
@php
$partnerRoute = route('partners.show', [
$transaction->partner_id,
Expand All @@ -25,6 +26,8 @@
]);
@endphp
<a href="{{ $partnerRoute }}">{!! optional($transaction->partner)->name_label !!}</a>
@endif
@if ($transaction->category)
@php
$categoryRoute = route('categories.show', [
$transaction->category_id,
Expand All @@ -33,4 +36,5 @@
]);
@endphp
<a href="{{ $categoryRoute }}">{!! optional($transaction->category)->name_label !!}</a>
@endif
</div>

0 comments on commit b310c56

Please sign in to comment.