@php $columns = [ 'sl','item','unit','desc','desc_2','stock','qty','free_secondary_qty','return_secondary_qty','damage_secondary_qty','calculated_secondary_qty','rate','sub_total','discount_percent','discount_amount','total','action','total_discount_amount', 'total_discount_percent' ]; if($master_variable == 'print') { $columns = array_merge($columns, ['total_net_total', 'total_openning_balance', 'total_with_openning', 'total_receive_amount', 'total_closing_balance', 'digit_in_bangla', 'footer_in_words', 'footer_in_words_bangla']); } $settings_obj = collect($current_setting); @endphp @foreach ($columns as $c)
@php $checked = 0; $label = ucfirst(str_replace('_', ' ', $c)); $serial = 1; $width = 1; $is_exist = $settings_obj->where('key', $c)->first(); if ($is_exist) { $checked = $is_exist->status; $label = $is_exist->label; $serial = $is_exist->serial ?? 1; $width = $is_exist->width ?? 1; } @endphp
@if($master_variable == 'print' || $info->type == 51) @endif
@if($c == 'action')
@endif @endforeach