{{ __('Courses') }} | {{ __('Instructor') }} | {{ __('Currency') }} | @if($orders->coupon_discount != 0)Coupon Discount | @endif{{ __('Total') }} | |||
---|---|---|---|---|---|---|---|
{{ $orders->courses['title'] }} | {{ $orders->courses->user['email'] }} | @else{{ $orders->bundle['title'] }} | {{ $orders->bundle->user['email'] }} | @endif{{ $orders['currency'] }} | @php $contains = Illuminate\Support\Str::contains($orders->currency_icon, 'fa'); @endphp @if($orders->coupon_discount != 0) @if($contains)(-) {{ $orders['coupon_discount'] }} | @else(-) {{ $orders['currency_icon'] }} {{ $orders['coupon_discount'] }} | @endif @endif@if($orders->coupon_discount == !NULL) @if($contains) {{ $orders['total_amount'] - $orders['coupon_discount'] }} @else {{ $orders['currency_icon'] }} {{ $orders['total_amount'] - $orders['coupon_discount'] }} @endif @else @if($contains) {{ $orders['total_amount'] }} @else {{ $orders['currency_icon'] }} {{ $orders['total_amount'] }} @endif @endif |