@include('layout.header')
@include('layout.navbar') @include('layout.breadscrum')
@include('layout.sidebar')

{{__('sidebar.payment')}}

@foreach($repayments as $k=>$repayment) @endforeach
{{__('invoice.table_no')}} {{__('invoice.table_action')}} {{__('invoice.table_patient_name')}} {{__('invoice.table_invoice_code')}} {{__('invoice.repayment_date')}} {{__('invoice.cash_paid')}} {{__('invoice.bank_paid')}} {{__('invoice.bank_name')}} {{__('invoice.transaction_no')}} {{__('invoice.exchange_rate')}}
{{($k+1) + (($_GET['page'] ?? 1) * 20) - 20}}
@if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['update_repayment'])) @endif @if(\App\Http\Controllers\Helper\GlobalController::user_can(Auth::user()->role_id, ['delete_repayment'])) @endif
{{$repayment->invoice->sample->patient->name_en}} {{$repayment->invoice->invoice_code}} {{date('d-m-Y',strtotime($repayment->repayment_date))}} {{$repayment->cash_repayment_amount}} {{$repayment->bank_repayment_amount}} {{$repayment->bank_name}} {{$repayment->transaction_ref}} {{$repayment->exchange_rate}}
{!! $repayments->appends($_GET)->links('pagination.custom') !!}
@include('modal.repayment') @include('layout.footer')
@include('layout.common_script')