@extends('layouts.adminapp') @section('title') {{ __('lng.RentPayment') }} - {{ __('lng.PayDetails') }} @endsection @section('open_rent_asset', 'open') @section('active_rent_asset', 'active') @section('active_rent_payment', 'active') @section('content')

{{ __('lng.RentPayment') }}

@if ($PropertyRent->member_id)
@if ($PropertyRent->Member->photo) @else @endif
{{ $PropertyRent->Member->name ?? '' }}
{{ __('lng.Back') }}

{{ $PropertyRent->Member->house->name ?? '' }} {{ $PropertyRent->Member->contact ?? '' }}

@if ($Balance > 0)

{{ __('lng.BalanceAmount') }}

@currency($Balance)

@else

{{ __('lng.AdvanceAmount') }}

@currency(abs($Balance))

@endif
@else
{{ $PropertyRent->name }}
{{ __('lng.Back') }}

{{ $PropertyRent->address }} {{ $PropertyRent->phone }}

{{ $PropertyRent->address }}

@if ($Balance > 0)

{{ __('lng.BalanceAmount') }}

@currency($Balance)

@else

{{ __('lng.AdvanceAmount') }}

@currency(abs($Balance))

@endif
@endif
{{ __('lng.PayRentDetails') }}
@php $si = 0; $Month = $month1; $Year = $year1; $PayAmount = $RentPayedAmout; @endphp @for ($i = 0; $i < $diff; $i++) @php if ($Month > 12) { $Month = 1; $Year++; } $Date = date('Y-m-d', strtotime($Year . '-' . $Month . '-1')); $monthName = date('F-Y', strtotime($Date)); $PayAmount -= $PropertyRent->monthly_rent; @endphp @php $Month++; @endphp @endfor
{{ __('lng.SiNo') }} {{ __('lng.Month') }} {{ __('lng.Amount') }} {{ __('lng.Paid') }}
{{ ++$si }} {{ $monthName }} @currency($PropertyRent->monthly_rent) = 0) checked @endif readonly>
{{ __('lng.PayHistory') }}
@php $si=0; @endphp @foreach ($PropertyRent->RentPayment->where('isCancelled', 0) as $RentPayment) @php $Date = date("d-m-y",strtotime($RentPayment->date));@endphp @endforeach
{{ __('lng.SiNo') }} {{ __('lng.Date') }} {{ __('lng.PayAmount') }} {{ __('lng.Action') }}
{{ ++$si }} {{ $Date }} @currency($RentPayment->amount)
@csrf @method('delete')
@endsection