@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), '#'=>isset($pageTitle)?$pageTitle:'' ]]) @endsection @section('content') {{ __lang('add-new') }}

@php foreach($paginator as $row): @endphp @php endforeach; @endphp
# {{ __lang('user') }} {{ __lang('items') }} {{ __lang('payment-method') }} {{ __lang('amount') }} {{ __lang('currency') }} {{ __lang('created-on') }} {{ __lang('status') }} {{__lang('actions')}}
{{ $row->id }} @if($row->user) {{ $row->user->name }} {{ $row->user->last_name }} ({{ $row->user->email }}) @else N/A @endif @if($row->paymentMethod) {{ $row->paymentMethod->name }} @endif {{formatCurrency($row->amount,$row->currency->country->currency_code)}} {{ $row->currency->country->currency_code }} {{ showDate('d/M/Y',$row->created_at) }}

@php if($row->paid == 1): @endphp {{ __lang('paid') }} @php else: @endphp {{ __lang('unpaid') }} @php endif; @endphp

@php if($row->paid == 0): @endphp @php endif; @endphp
@php if(is_object($cart)): @endphp @if($cart->isCertificate())
@foreach($cart->getCertificates() as $certificate) @endforeach
{{ __lang('certificate') }} {{ __lang('price') }}
{{ $certificate->name }} {{ price($certificate->price) }}
@else
@php foreach($cart->getSessions() as $session): @endphp @php endforeach; @endphp
{{ __lang('course-session') }} {{ __lang('fee') }}
{{$session->name}} {{ price($session->fee,$row->currency_id) }}
@php if($cart->hasDiscount()): @endphp

{{ __lang('discount') }}: {{$cart->getDiscount()}}%
@php if(\App\Coupon::find($cart->getCouponId())): @endphp {{ __lang('coupon-code') }}: {{\App\Coupon::find($cart->getCouponId())->code}} @php endif; @endphp

@php endif; @endphp
@endif @php endif; @endphp
{{$paginator->links()}}
@endsection @section('footer')
@csrf
@endsection