@switch($item['quest_rule'])
@case('nominal_transaction')
Transaction Nominal
: Minimum {{number_format($item['trx_nominal'])}}
@break
@case('total_transaction')
Transaction Total
: {{$item['trx_total']}}
@break
@case('total_product')
Product Total
: {{$item['product_total']}}
@break
@case('total_outlet')
Outlet Different
: {{$item['different_outlet']}}
@break
@case('total_province')
Province Different
: {{$item['different_province']}}
@break
@endswitch
@if (!is_null($item['id_product_category']) || !is_null($item['different_category_product']))
@if (!is_null($item['id_product_category']))
Product Category
: {{$item['product_category']['product_category_name']}}
@endif
@endif
@if (!is_null($item['id_product']) || !is_null($item['product_total']))
@if (!is_null($item['id_product']))
Product
: {{$item['product']['product_name']}}
@endif
@if (!is_null($item['product_total']) && $item['quest_rule'] != 'total_product')
Product Total
: {{$item['product_total']}}
@endif
@endif
@if (!is_null($item['id_outlet']) || !is_null($item['different_outlet']))
@if (!is_null($item['id_outlet']))
Outlet
: {{$item['outlet']['outlet_name']}}
@endif
@endif
@if (!is_null($item['id_province']) || !is_null($item['different_province']))
@if (!is_null($item['id_province']))
Province
: {{$item['province']['province_name']}}
@endif
@endif
@if (!is_null($item['trx_nominal']) || !is_null($item['trx_total']))
@if (!is_null($item['trx_nominal']) && $item['quest_rule'] != 'nominal_transaction')
Transaction Nominal
: Minimum {{number_format($item['trx_nominal'])}}
@endif
@endif
Total User Complete
: {{ number_format( ($item['user_complete'] ?? 0),0,',','.') }}