@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