@extends('layouts.contentLayoutMaster') {{--@php--}} {{--$breadcrumbs = [[['link' => route('cancel-contracts.index'), 'name' => 'الطلاب'],['link' => route('students.show',$student->id), 'name' => $student->student_name],['link' => route('students.contracts.index',[$student->id,$contract]), 'name' => 'تعاقد #'.$contract],['link' => route('students.contracts.transactions.index',[$student->id,$contract,$transaction->id]), 'name' => $transaction->installment_name]],['title'=> 'سجل الدفع #'. $transaction->id]];--}} {{--@endphp--}} @section('title', 'سجل محاولات الدفع #'. $transaction->id) @section('content') سجل محاولات الدفع - للدفعة رقم #{{ $transaction->id }} - ({{$transaction->installment_name}}) محاولات الدفع للعقد رقم #{{ $contract . ' - اسم الطالب : ' . $student->student_name .' - الدفعة : #' . $transaction->id . ' - '. $transaction->installment_name }} @can('accounts-create') @if(!$contractAcademicYear->status)) اضافة دفعة جديدة @endif @endcan الاجراءات كود الفترة وسيلة الدفع مبلغ الدفعه خ.قسيمة خ.محفظة خ.فترة المحصل حالة الدفع المرجع مزامنة odoo بواسطة اخر تحديث @foreach($PaymentAttempts as $key => $PaymentAttempt) @can('account-paymentAttempts') {{-- --}} @if($PaymentAttempt->getRawOriginal('approved') == 0) @can('account-paymentAttempts-confirm') @endcan @can('account-paymentAttempts-reject') @endcan @elseif($PaymentAttempt->getRawOriginal('approved') == 1) @endif @endcan @can('account-paymentAttempts-delete') @if(!in_array($contractAcademicYear->status,[\App\Models\Contract::FINISHED,\App\Models\Contract::CANCELLED])) @endif @endcan @if($PaymentAttempt->received_ammount !=0 && $PaymentAttempt->odoo_sync_status == 0 && $PaymentAttempt->approved && $year->id == $contractAcademicYear->academic_year_id && $transaction->transaction_type != "withdrawal") @can('accounts-list') @endcan @endif {{-- @if(($PaymentAttempt->odoo_sync_update_invoice_status == 0 || $PaymentAttempt->odoo_sync_inverse_journal_status == 0) && $PaymentAttempt->approved && $year->id == $contractAcademicYear->academic_year_id && $transaction->transaction_type == "withdrawal")--}} {{-- @can('accounts-list')--}} {{-- --}} {{-- @endcan--}} {{-- @endif--}} {{ $PaymentAttempt->id }} {{ $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() }} @endforeach @endsection