@foreach($transaction->transaction_branches as $branch)
@if(!is_null($branch->branch))
- {{ $branch->branch->name ?? '' }}
@endif
@endforeach
@if($transaction->transaction_branches->contains('branch_id', 0))
- Other
@endif
{{--
@if ($transaction->transaction_branches->count() > 0)
@foreach ($transaction->transaction_branches as $branch)
@if (!is_null($branch->branch))
- {{ $branch->branch->name ?? '' }}
@endif
@endforeach
@else
- Other
@endif
--}}