@php $chequeService = app(\Modules\Accounting\Services\ChequeService::class); $transitions = $chequeService->allowedTransitions($row->status); $labels = [ 'deposited' => __('accounting::lang.deposited'), 'cleared' => __('accounting::lang.clear'), 'bounced' => __('accounting::lang.bounced'), 'cancelled' => __('accounting::lang.cancelled'), 'endorsed' => __('accounting::lang.endorsed'), 'pending' => __('accounting::lang.re_present'), ]; $btnClass = [ 'deposited' => 'btn-info', 'cleared' => 'btn-success', 'bounced' => 'btn-danger', 'cancelled' => 'btn-default', 'endorsed' => 'btn-primary', 'pending' => 'btn-warning', ]; @endphp @if(empty($transitions)) - @else @foreach($transitions as $status)
@endforeach @endif