@php $color=['table-custom','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light','table-primary','table-secondary','table-success','table-danger','table-warning','table-info','table-light']; $offer_details=$data['get_offer_details']; $offer_product_details=$data['get_offer_products']; @endphp
Offer Name : {{$offer_details->offer_name}}
Offer For : {{$offer_details->offer_for}}
Offer From : {{$offer_details->offer_from}}
Offer To : {{$offer_details->offer_to}}
Offer : @if($offer_details->offer_type=="Amount") @php $offer=number_format($offer_details->offer_value,2); @endphp @else @php $offer=$offer_details->offer_value.'%'; @endphp @endif {{$offer}}
Offer Staus : @if($offer_details->offer_active_status==0) Active @else Inactive @endif
Added By : {{$offer_details->name}}
@php $i=1; @endphp @foreach($offer_product_details as $offer_product) @if($offer_details->offer_type=="Amount") @php $offer_product_price=$offer_product['product_price']-$offer_details->offer_value; @endphp @else @php $offer_product_price = $offer_product['product_price']-(($offer_details->offer_value / 100) * $offer_product['product_price']); @endphp @endif @php $i++; @endphp @endforeach
ID Product Price Offer price
{{$i}} {{$offer_product['product_name_en']}} {{number_format($offer_product['product_price'],2)}} {{number_format($offer_product_price,2)}}