@extends( 'layouts.app' ) @section('title') Edit Payment @stop @section('breadcrumb') @stop @section('content')
{{csrf_field()}}

Payment Information


@if ($errors->has('customer_id')) {{ $errors->first('customer_id') }} @endif
Pick one unit
@foreach($properties as $property) @if($payment->customer_property_id == $property->id) @else @endif @endforeach
Unit No. Net Amount of unit Received Amount Remaining Amount Last Payment Date
{{$property->block . ' ' . $property->plot_no}} {{number_format($property->net_pay)}} PKR {{number_format($receivedAmount[$property->id])}} PKR {{number_format($remainingAmount[$property->id])}} PKR {{$lastDate[$property->id] ? date('d-m-Y', strtotime($lastDate[$property->id]->receipt_date)) : ''}}


@if ($errors->has('payment_mode')) {{ $errors->first('payment_mode') }} @endif
@if($receipt->payment_mode !== \App\Receipt::cash )
@if ($errors->has('bank_name')) {{ $errors->first('bank_name') }} @endif
@else @endif @if($payment->payment_mode == \App\Receipt::cheque)
@if ($errors->has('cheque_number')) {{ $errors->first('cheque_number') }} @endif
@else @endif
@if ($errors->has('amount')) {{ $errors->first('amount') }} @endif

Receipt Information


@if ($errors->has('receipt_no')) {{ $errors->first('receipt_no') }} @endif
@if ($errors->has('receipt_date')) {{ $errors->first('receipt_date') }} @endif
@stop @section('js') @stop