@extends('layouts.admin') @push('title', get_phrase('Offline payments')) @push('meta')@endpush @push('css')@endpush @section('content')
{{ get_phrase('Showing') . ' ' . count($payments) . ' ' . get_phrase('of') . ' ' . $payments->total() . ' ' . get_phrase('data') }}
| # | {{ get_phrase('User') }} | {{ get_phrase('Items') }} | {{ get_phrase('Type') }} | {{ get_phrase('Total') }} | {{ get_phrase('Issue date') }} | {{ get_phrase('Payment info') }} | {{ get_phrase('Status') }} | {{ get_phrase('Options') }} |
|---|---|---|---|---|---|---|---|---|
|
{{ $key + 1 }} |
{{ get_user_info($payment->user_id)->name }}{{ get_user_info($payment->user_id)->email }} {{get_phrase('Phone')}}: {{ get_user_info($payment->user_id)->phone }} |
@if ($payment->item_type == 'course')
@foreach (App\Models\Course::whereIn('id', json_decode($payment->items, true))->get() as $course)
@endforeach
@endif
@if ($payment->item_type == 'bootcamp')
@foreach (App\Models\Bootcamp::whereIn('id', json_decode($payment->items, true))->get() as $bootcamp)
@endforeach
@endif
@if ($payment->item_type == 'package')
@foreach (App\Models\TeamTrainingPackage::whereIn('id', json_decode($payment->items, true))->get() as $package)
@endforeach
@endif
@if ($payment->item_type == 'tutor_booking')
@foreach (App\Models\TutorSchedule::whereIn('id', json_decode($payment->items, true))->get() as $tutor_schedule)
{{ $tutor_schedule->schedule_to_tutorSubjects->name }} {{ $tutor_schedule->schedule_to_tutor->name }} @endforeach @endif |
{{ ucfirst($payment->item_type) }} |
{{ currency($payment->total_amount) }}
|
{{ date('d-M-y', strtotime($payment->created_at)) }} |
{{ get_phrase('Download') }} | @if ($payment->status == 1) {{ get_phrase('Accepted') }} @elseif($payment->status == 2) {{ get_phrase('Suspended') }} @else {{ get_phrase('Pending') }} @endif |
{{ get_phrase('Showing') . ' ' . count($payments) . ' ' . get_phrase('of') . ' ' . $payments->total() . ' ' . get_phrase('data') }}
{{ $payments->links() }}