@extends('layouts.contentLayoutMaster') @php $breadcrumbs = [[['link' => route('home'), 'name' => "الرئيسية"],['link' => route('accounts.paymentAttempts'), 'name' => 'الحسابات'],['link' => route('accounts.paymentAttempts'), 'name' => 'محاولات الدفع']],['title'=> 'محاولات الدفع']]; @endphp @section('vendor-style') @endsection @section('page-style') @endsection @section('title', 'سجل محاولات الدفع') @section('content') @if($errors->any()) @endif
{{-- --}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}}
{!! sprintf('محاولات الدفع خلال العام الدراسي (%s) - الفترة من (%s) الي (%s)',$year->year_name ,$date_from, $date_to) !!} {!! sprintf('معروض (%s) من (%s) عملية دفع مؤكدة - صفحة رقم (%s) من (%s) صفحة',$PaymentAttempts->count(),$PaymentAttempts->total() , $PaymentAttempts->currentPage(),$PaymentAttempts->lastPage()) !!} الاجراءات كود كود الدفعة نوع الدفعة كود النوع الطالب ولي الامر {{-- الصف--}} {{-- خ.السداد--}} {{-- عن طريق--}} الفترة وسيلة الدفع القيمة المطلوبة خ.قسيمة خ.محفظة خ.فترة المحصل حالة الدفع المرجع مزامنة odoo بواسطة اخر تحديث @foreach($PaymentAttempts as $key => $PaymentAttempt) @php $transactionable=$PaymentAttempt->transaction->transactionable; $student =$PaymentAttempt->transactionable_type != 'App\Models\Application' && $transactionable && $transactionable->student_id != null ? \App\Models\Student::find($transactionable->student_id) : null; $student_name =$PaymentAttempt->transactionable_type == 'App\Models\Application' ?$transactionable->student_name : ($student ? $student->student_name : '') ; $guardian =$PaymentAttempt->transactionable_type == 'App\Models\Application' && $transactionable && $transactionable->guardian_id != null ? \App\Models\guardian::where('guardian_id',$transactionable->guardian_id)->first() : ($student && $student->guardian_id ? \App\Models\guardian::where('guardian_id',$student->guardian_id)->first() : null) ; $parent = $guardian ? \App\Models\User::find($guardian->guardian_id) : null; $level_id=$PaymentAttempt->transactionable_type == 'App\Models\Application' || $PaymentAttempt->transactionable_type == 'App\Models\Contract' ? $transactionable->level_id :($PaymentAttempt->transactionable_type == 'App\Models\Debt' ? $transactionable->contract->level_id :$transactionable->next_level_id) @endphp @if(in_array($level_id,$can_manage)) @can('account-paymentAttempts') @if($PaymentAttempt->getRawOriginal('approved') == 0) @can('account-paymentAttempts-confirm') @endcan @can('account-paymentAttempts-reject') @endcan @elseif($PaymentAttempt->getRawOriginal('approved') == 1) @if($PaymentAttempt->transactionable_type == 'App\Models\Debt') @elseif($PaymentAttempt->transactionable_type == 'App\Models\TransferRequest') @elseif($PaymentAttempt->transactionable_type == 'App\Models\Application') @else @endif @endif @endcan @can('account-paymentAttempts-delete') @endcan {{ $PaymentAttempt->id }} {{ $PaymentAttempt->transaction_id}} {{ $PaymentAttempt->transaction->transactionType()}} {{ $PaymentAttempt->transactionable_id}} {{ $student_name }} {{ $parent ? sprintf('%s (%s)',$parent->first_name.' '.$parent->last_name,$guardian->national_id) : '' }} {{-- {{ sprintf('%s - %s - %s - %s',$PaymentAttempt->school_name , $PaymentAttempt->gender_name, $PaymentAttempt->grade_name, $PaymentAttempt->level_name) }}--}} {{-- {{ $PaymentAttempt->plan_name }}--}} {{-- {{ sprintf('%s (%s)',$PaymentAttempt->installment_name,$PaymentAttempt->year_name) }} --}} {{-- {{ $PaymentAttempt->method_name }} {!! $PaymentAttempt->bank_name ? sprintf('(%s)',$PaymentAttempt->account_number,$PaymentAttempt->bank_name) : '' !!} {!! $PaymentAttempt->network_name ? sprintf('(%s)',$PaymentAttempt->network_account_number,$PaymentAttempt->network_name) : '' !!}--}} {{ $PaymentAttempt->period_name }} {{ $PaymentAttempt->method_name }} {!! $PaymentAttempt->bank_name ? sprintf('(%s)',$PaymentAttempt->account_number,$PaymentAttempt->bank_name) : '' !!} {!! $PaymentAttempt->network_name ? sprintf('(%s)',$PaymentAttempt->network_account_number,$PaymentAttempt->network_name) : '' !!} {{ $PaymentAttempt->requested_ammount }} {{ null !== $PaymentAttempt->coupon_discount && $PaymentAttempt->coupon_discount > 0 ? sprintf('خصم %s - (%s)',$PaymentAttempt->coupon_discount,$PaymentAttempt->coupon) : ''}} {{ null !== $PaymentAttempt->wallet_id ? sprintf('خصم محفظة %s - (%s)',$PaymentAttempt->wallet_discount,$PaymentAttempt->wallet_id) : ''}} {{ $PaymentAttempt->period_discount }} {{ $PaymentAttempt->received_ammount }} {{ $PaymentAttempt->approved()}} @if(in_array($PaymentAttempt->payment_method_id,[1,2,4]) && ! empty($PaymentAttempt->attach_pathh) && Storage::disk('s3')->exists($PaymentAttempt->attach_pathh)) @else {{ $PaymentAttempt->reference }} @endif @if($PaymentAttempt->odoo_sync_status) @else @endif {{ $PaymentAttempt->admin_name }} {{ $PaymentAttempt->updated_at->diffforhumans() }} @endif @endforeach {{ $PaymentAttempts->appends(request()->except('page'))->links() }}

الاحصائيات

تم التحديث في {{ Carbon\Carbon::now()->format('d-m-Y') }} عن الساعة {{ Carbon\Carbon::now()->format('H:m:s') }}

{{ $PaymentAttempts->sum('received_ammount') }} ر.س

التحصيلات بالصفحة

{{ $PaymentAttempts->count() }} حركة

عدد الحركات بالصفحة

{{ $PaymentAttempts->total() }} حركة

عدد الحركات

{{ $sum_payments }} ر.س

اجمالي التحصيلات

@endsection @section('vendor-script') @endsection @section('page-script') @endsection