@extends($layout_path) @section('title', $app_setting['name'] . ' | Invoices List') @section('header-title')

{{ __('Invoice Management') }}

@endsection @section('content')
@forelse ($invoices as $invoice) @empty @endforelse
{{ __('Invoice') }} {{ __('Create Date') }} {{ __('Payment Date') }} {{ __('Course Title') }} {{ __('Student Name') }} {{ __('Status') }} {{ __('Total') }} {{ __('Action') }}
{{ $invoice->invoice_token }} {{ $invoice?->created_at ? \Carbon\Carbon::parse($invoice->created_at)->format('d M,Y') : 'N/A' }} {{ $invoice?->payment_at ? \Carbon\Carbon::parse($invoice->payment_at)->format('d M,Y') : 'N/A' }} {{ $invoice->courses->pluck('title')->map(fn($title) => Str::limit($title, 30))->implode(' && ') }} {{ $invoice->user->name }} @if ($invoice->payment_status == 0)
{{ __('unpaid') }}
@else
{{ __('paid') }}
@endif
@if ($invoice->total_price) @if ($app_setting['currency_position'] == 'Left') {{ $app_setting['currency_symbol'] }}{{ $invoice->total_price }} @else {{ $invoice->total_price }}{{ $app_setting['currency_symbol'] }} @endif @else N/A @endif @if ($invoice->trashed()) {{ __('Restore Invoice') }} @else {{ __('View Invoice') }} {{ __('Copy Invoice') }} {{ __('Download Invoice') }} {{ __('Edit Invoice') }} {{ __('Delete Invoice') }} @endif
No data found
{{ $invoices->links() }}
@endsection @push('styles') @endpush @push('scripts') @endpush