@extends('frontend.student-dashboard.layouts.master') @section('dashboard-contents')

{{ __('Order History') }}

@forelse ($orders as $index => $order) @empty @endforelse
{{ __('No') }} {{ __('Invoice') }} {{ __('Paid') }} {{ __('Gateway') }} {{ __('Status') }} {{ __('Payment') }}
{{ ++$index }} #{{ $order->invoice_id }} {{ $order->paid_amount }} {{ $order->payable_currency }} {{ $order->payment_method }} @if ($order->status == 'completed')
{{ __('Completed') }}
@elseif($order->status == 'processing')
{{ __('Processing') }}
@elseif($order->status == 'declined')
{{ __('Declined') }}
@else
{{ __('Pending') }}
@endif
@if ($order->payment_status == 'paid')
{{ __('Paid') }}
@elseif ($order->payment_status == 'cancelled')
{{ __('Cancelled') }}
@else
{{ __('Pending') }}
@endif
{{ __('No orders found!') }}
{{ $orders->links() }}
@endsection