@extends('theme.master') @section('title', 'Purchase History') @section('content') @include('admin.message')

{{ __('frontstaticword.PurchaseHistory') }}

@foreach($orders as $order)
@endforeach
{{ __('frontstaticword.PurchaseHistory') }} {{ __('frontstaticword.Enrollon') }} {{ __('frontstaticword.EnrollEnd') }} {{ __('frontstaticword.PaymentMode') }} {{ __('frontstaticword.TotalPrice') }} {{ __('frontstaticword.PaymentStatus') }}s {{ __('frontstaticword.Actions') }}
@if($order->course_id != NULL) @if($order->courses['preview_image'] !== NULL && $order->courses['preview_image'] !== '') course @else course @endif @else @if($order->bundle['preview_image'] !== NULL && $order->bundle['preview_image'] !== '') course @else course @endif @endif
@if($order->course_id != NULL) {{ $order->courses->title }} @else {{ $order->bundle->title }} @endif
{{ date('jS F Y', strtotime($order->created_at)) }}
@if($order->course_id != NULL) @if($order->enroll_expire != NULL) {{ date('jS F Y', strtotime($order->enroll_expire)) }} @else - @endif @endif
{{ $order->payment_method }}
@if($order->coupon_discount == !NULL)
{{ $order->total_amount - $order->coupon_discount }}
@else
{{ $order->total_amount }}
@endif
@if($order->status ==1) {{ __('frontstaticword.Recieved') }} @else {{ __('frontstaticword.Pending') }} @endif
@endsection