@extends('mix::layouts.master') @section('title', __('Sales')) @section('footerJS') @stop @section('content') @includeIf('include.back-header', ['route' => route('sandy-blocks-course-mix-dashboard')])
@if (!$orders->isEmpty())
{{ __('Customer') }} {{ __('Course') }} {{ __('Price') }} {{ __('Date') }}
@foreach ($orders as $item)
{!! avatar($item->payee_user_id, true) !!}
{{ user('name', $item->payee_user_id) }} {{ user('email', $item->payee_user_id) }}
@php $course = \Sandy\Blocks\course\Models\Course::find($item->course_id); @endphp {{ $course ? $course->name : __('Course not found') }}
{!! \Bio::price($item->price, $user->id) !!}
{{ \Carbon\Carbon::parse($item->created_at)->toFormattedDateString() }}
@endforeach
{!! $orders->links() !!}
@else
@include('include.no-record')
@endif
@endsection