| {{$data['bill']->id}} |
{{$data['bill']->course_name}} |
{{$data['bill']->course_price}} SAR |
{{($data['bill']->course_price*settings('added_value'))/100}} SAR |
{{$data['bill']->pay_way ? __('courses.'.$data['bill']->pay_way) : 'points'}} |
@if($data['bill']->coupon_discount)
{{-- discount value --}}
@if($data['bill']->coupon_type == 'admin')
{{(($data['bill']->course_price+(($data['bill']->course_price*settings('added_value'))/100))*$data['bill']->coupon_discount)/100}}
@endif
@if($data['bill']->coupon_type == 'earned')
{{$data['bill']->coupon_discount}}
@endif
|
{{-- Price after discount --}}
@if($data['bill']->coupon_type == 'admin')
{{($data['bill']->course_price+(($data['bill']->course_price*settings('added_value'))/100))-((($data['bill']->course_price+(($data['bill']->course_price*settings('added_value'))/100))*$data['bill']->coupon_discount)/100)}}
@endif
@if($data['bill']->coupon_type == 'earned')
{{(($data['bill']->course_price+($data['bill']->course_price*settings('added_value'))/100)-$data['bill']->coupon_discount)}}
@endif
|
{{-- last total --}}
@if($data['bill']->coupon_type == 'admin')
{{($data['bill']->course_price+(($data['bill']->course_price*settings('added_value'))/100))-((($data['bill']->course_price+(($data['bill']->course_price*settings('added_value'))/100))*$data['bill']->coupon_discount)/100)}}
@endif
@if($data['bill']->coupon_type == 'earned')
{{(($data['bill']->course_price+($data['bill']->course_price*settings('added_value'))/100)-$data['bill']->coupon_discount)}}
@endif
|
@endif
@if($data['bill']->points)
{{($data['bill']->points/25)}}
|
{{($data['bill']->course_price+($data['bill']->course_price*settings('added_value'))/100)-($data['bill']->points/25)}}
|
{{($data['bill']->course_price+($data['bill']->course_price*settings('added_value'))/100)-($data['bill']->points/25)}}
|
@endif
@if(!$data['bill']->coupon_discount && !$data['bill']->points)
{{(($data['bill']->course_price*settings('added_value'))/100)+$data['bill']->course_price}} SAR |
@endif