@extends('theme.master') @section('title', 'Invoice') @section('content') @include('admin.message') @section('custom-head') @endsection @php $gets = App\Breadcum::first(); @endphp @if(isset($gets))
@if($gets['img'] !== NULL && $gets['img'] !== '') @else course @endif

{{ __('Invoice') }}

@endif
From: @if($orders->course_id != NULL)
{{ $orders->courses->user['fname'] }}
{{ __('address') }}: {{ $orders->courses->user['address'] }}
@if($orders->courses->user['state_id'] == !NULL) {{ $orders->courses->user->state['name'] }}, @endif @if($orders->courses->user['country_id'] == !NULL) {{ $orders->courses->user->country['name'] }} @endif
{{ __('Phone') }}: {{ $orders->courses->user['mobile'] }}
{{ __('Email') }}: {{ $orders->courses->user['email'] }}
@else
{{ $orders->bundle->user['fname'] }}
{{ __('address') }}: {{ $orders->bundle->user['address'] }}
@if($orders->bundle->user->state_id == !NULL) {{ $orders->bundle->user->state['name'] }}, @endif @if($orders->bundle->user->country_id == !NULL) {{ $orders->bundle->user->country['name'] }} @endif
{{ __('Phone') }}: {{ $orders->bundle->user['mobile'] }}
{{ __('Email') }}: {{ $orders->bundle->user['email'] }}
@endif
To:
{{ $orders->user['fname'] }}
{{ __('address') }}: {{ $orders->user['address'] }}
@if($orders->user->state_id == !NULL) {{ $orders->user->state['name'] }}, @endif @if($orders->user->country_id == !NULL) {{ $orders->user->country['name'] }} @endif
{{ __('Phone') }}: {{ $orders->user['mobile'] }}
{{ __('Email') }}: {{ $orders->user['email'] }}

{{ __('OrderID') }}: {{ $orders['order_id'] }}
{{ __('TransactionID') }}: {{ $orders['transaction_id'] }}
{{ __('Payment Mode') }}: {{ $orders['payment_method'] }}
{{ __('Currency') }}: {{ $orders['currency'] }}
{{ __('Payment Status') }}: @if($orders->status ==1) {{ __('Recieved') }} @else {{ __('Pending') }} @endif
{{ __('Enroll on') }}: {{ date('jS F Y', strtotime($orders['created_at'])) }}
@if($orders->enroll_expire != NULL) {{ __('Enroll End') }}: {{ date('jS F Y', strtotime($orders['enroll_expire'])) }}
@endif
@if($orders->coupon_discount != 0) @endif @if($orders->course_id != NULL) @else @endif @php $contains = Illuminate\Support\Str::contains($orders->currency_icon, 'fa'); @endphp @if($orders->coupon_discount != 0) @if($contains) @else @endif @endif
{{ __('Courses') }} {{ __('Instructor') }} {{ __('Currency') }}Coupon Discount{{ __('Total') }}
{{ $orders->courses['title'] }} {{ $orders->courses->user['email'] }}{{ $orders->bundle['title'] }} {{ $orders->bundle->user['email'] }}{{ $orders['currency'] }} (-) {{ $orders['coupon_discount'] }} (-) {{ $orders['currency_icon'] }} {{ $orders['coupon_discount'] }} @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
@if($orders->bundle_id != NULL) @foreach($bundle_order->course_id as $bundle_course) @php $coursess = App\Course::where('id', $bundle_course)->first(); @endphp
@if($coursess['preview_image'] !== NULL && $coursess['preview_image'] !== '') course @else course @endif
@endforeach @endif
@endsection @section('custom-script') @endsection