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