@extends('layouts.app') @section('title') Edit Receipt @stop @section('breadcrumb') @stop @section('content')
{{csrf_field()}}
@if($errors->any())

Errors

    {!! implode('', $errors->all('
  • :message
  • ')) !!}
@endif

Payment Information


@if ($errors->has('customer_id')) {{ $errors->first('customer_id') }} @endif
Pick one unit
@foreach($properties as $property) @if($receipt->customer_property_id == $property->id) @else @endif @endforeach
Unit No. Net Amount of unit Received Amount Remaining Amount Last Payment Date
{{$property->inventory->unit_number}} {{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_head')) {{ $errors->first('payment_head') }} @endif
@if ($errors->has('payment_mode')) {{ $errors->first('payment_mode') }} @endif
@if($receipt->payment_mode == \App\Receipt::adjustment)
@if ($errors->has('adjustment_type')) {{ $errors->first('adjustment_type') }} @endif
@if ($errors->has('adjustment_detail')) {{ $errors->first('adjustment_detail') }} @endif
@else @endif @if($receipt->payment_mode !== \App\Receipt::cash && $receipt->payment_mode !== \App\Receipt::adjustment)
@if ($errors->has('bank_name')) {{ $errors->first('bank_name') }} @endif
@else @endif @if($receipt->payment_mode !== \App\Receipt::cash && $receipt->payment_mode !== \App\Receipt::adjustment)
@if ($errors->has('company_account')) {{ $errors->first('company_account') }} @endif
@else @endif @if($receipt->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