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

{{ __('Order History') }}

@forelse ($orders as $index => $order) @php $commissionAmount = $order->price * ($order->commission_rate / 100); $amountAfterCommission = $order->price - $commissionAmount; @endphp @empty @endforelse
{{ __('No') }} {{ __('Course') }} {{ __('Buyer') }} {{ __('Main Price') }} {{ __('Your Commission') }}
{{ ++$index }} {{ $order->course->title}} {{ $order->order->user->name}} {{ currency($order->price ) }}{{ currency($amountAfterCommission) }}
{{ __('No orders found!') }}
{{ $orders->links() }}
@endsection