@extends('layouts.main') @section('page-title') {{__('Customer Statement')}} @endsection @push('scripts') @endpush @section('page-breadcrumb') {{__('Customer')}}, {{$customer['name']}}, {{__('Customer Statement')}} @endsection @section('page-action')
@endsection @section('content')
{{Form::model($customerDetail,array('route' => array('customer.statement' , $customer->id), 'method' => 'post', 'class'=>'needs-validation', 'novalidate'))}}

{{$customer['name'].' '.__('Statement')}}

{{ Form::label('from_date', __('From Date'),['class'=>'form-label']) }} {{Form::date('from_date', isset($data['from_date'])?$data['from_date']:null,array('class'=>'form-control ','required'=>'required'))}}
{{ Form::label('until_date', __('Until Date'),['class'=>'form-label']) }} {{Form::date('until_date', isset($data['until_date'])?$data['until_date']:null,array('class'=>'form-control ','required'=>'required'))}}
{{Form::close()}}
{{__('My Company')}}
{{ $user->email }}
{{__('Statement of Account')}}
{{($data['from_date']).' '.'to'.' '.($data['until_date'])}}

@if(!empty($customer->billing_name))
{{__('Billed To')}} :
{{ !empty($customer->billing_name) ? $customer->billing_name : '' }}
{{ !empty($customer->billing_address) ? $customer->billing_address : '' }}
{{ !empty($customer->billing_city) ? $customer->billing_city .' ,': '' }} {{ !empty($customer->billing_state) ? $customer->billing_state .' ,': '' }} {{ !empty($customer->billing_zip) ? $customer->billing_zip : '' }}
{{ !empty($customer->billing_country) ? $customer->billing_country : '' }}
{{ !empty($customer->billing_phone) ? $customer->billing_phone : '' }}
{{__('Tax Number ')}} : {{!empty($customer->tax_number)?$customer->tax_number:''}}
@endif @if (company_setting('invoice_shipping_display') == 'on' || company_setting('proposal_shipping_display') == 'on' )
{{__('Shipped To')}} :
{{ !empty($customer->shipping_name) ? $customer->shipping_name : '' }}
{{ !empty($customer->shipping_address) ? $customer->shipping_address : '' }}
{{ !empty($customer->shipping_city) ? $customer->shipping_city .' ,': '' }} {{ !empty($customer->shipping_state) ? $customer->shipping_state .' ,': '' }} {{ !empty($customer->shipping_zip) ? $customer->shipping_zip : '' }}
{{ !empty($customer->shipping_country) ? $customer->shipping_country : '' }}
{{ !empty($customer->shipping_phone) ? $customer->shipping_phone : '' }}
{{__('Tax Number ')}} : {{!empty($customer->tax_number)?$customer->tax_number:''}}
@endif
@php $total = 0; @endphp @forelse($invoice_payment as $payment) @empty @endforelse @foreach($invoice_payment as $key=>$payment) @php $total += $payment->amount; @endphp @endforeach
{{__('Date')}} {{__('Invoice')}} {{__('Payment Type')}} {{__('Amount')}}
{{company_date_formate($payment->date)}} {{\App\Models\Invoice::invoiceNumberFormat($payment->invoice_id)}} {{$payment->payment_type}} {{currency_format_with_sym(($payment->amount))}}

{{__('No Data Found')}}

{{__('TOTAL :')}} {{currency_format_with_sym($total)}}
@endsection