@extends('layouts.default') @push('title', get_phrase('Purchase History')) @push('meta')@endpush @push('css')@endpush @section('content')
@include('frontend.default.student.left_sidebar')

{{ get_phrase('Payment History') }}

@if ($payments->count() > 0)
@foreach ($payments as $payment) @endforeach
{{ get_phrase('Item') }} {{ get_phrase('Date') }} {{ get_phrase('Payment Method') }} {{ get_phrase('Price') }} {{ get_phrase('Status') }} {{ get_phrase('Action') }}
{{ $payment->title }} {{ date('Y-m-d', strtotime($payment->created_at)) }} {{ ucfirst($payment->payment_type) }} {{ currency($payment->amount) }} @if ($payment->payment_status === 'paid') PAID @elseif ($payment->payment_status === 'unpaid') UNPAID @else FAILED @endif @if ($payment->payment_status === 'paid') @elseif ($payment->payment_status === 'unpaid') @else - @endif
@else
@include('frontend.default.empty')
@endif
@endsection @push('js') @endpush