@extends('student.master') @section('title', 'My Purchases') @section('content')

Payment History

@if (count($payments)) @foreach ($payments as $payment) @if ($payment->status) @else @endif @endforeach @else @endif
Date Courses Purchased Amount Transaction ID Status
{{ $payment->created_at->format('j M, Y') }} @foreach ($payment->paymentCourses as $index => $paymentCourse) {{ $paymentCourse->course->title }}{!! $index != count($payment->paymentCourses) - 1 ? ', ' : '' !!} @endforeach {{ $payment->amount }} AED {{ $payment->tracking_id }} PendingSuccess

No Payments Details Found

@endsection