@extends('layout.app') @section('title') {{ __('الدفعات') }} @stop @section('content')
الاحصائيات

{{ __('اجمالي المديونية') }}

{{ $debt->price }} {{ $debt->currancy == '1' ? 'دولار' : 'شيكل' }}
@php $payments = 0; foreach($debt->payments as $payment) { $payments += $payment->price; } $withdrows = 0; foreach($debt->withdrows as $withdrow) { $withdrows += $withdrow->price; } @endphp

{{ __('اجمالي الدفعات') }}

{{ $payments }}

{{ __('المديونية المضافة') }}

{{ $withdrows }}

{{ __('المبلغ المتبقي') }}

{{ $debt->price - $payments + $withdrows }}
@forelse ($debt->payments as $key => $item) @empty @endforelse
# {{ __('الاسم الدفعة') }} {{ __('قيمة الدفعة') }} {{ __('تاريخ الدفعة') }} {{ __('Action') }}
{{ $key+1 }} {{ $item->name }} @if($item->currancy == '0') {{ $item->price . ' شيكل' }} @else {{ $item->price . ' دولار' }} @endif {{ $item->date }} تعديل حذف
لا يوجد دفعات
@foreach ($debt->payments as $item) @endforeach
@endsection