@extends('layouts.admin') @section('page-title') {{__('Customer Statement')}} @endsection @push('script-page') @endpush @section('breadcrumb') @endsection @section('action-btn')
@endsection @section('content')
{{Form::model($customerDetail,array('route' => array('customer.statement' , $customer->id), 'method' => 'post'))}}

{{$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_phone)?$customer->billing_phone:''}}
{{!empty($customer->billing_address)?$customer->billing_address:''}}
{{!empty($customer->billing_zip)?$customer->billing_zip:''}}
{{!empty($customer->billing_city)?$customer->billing_city:'' .', '}} {{!empty($customer->billing_state)?$customer->billing_state:'',', '}} {{!empty($customer->billing_country)?$customer->billing_country:''}}
{{__('Tax Number ')}} : {{!empty($customer->tax_number)?$customer->tax_number:''}}
@endif @if(\App\Models\Utility::getValByName('shipping_display')=='on')
{{__('Shipped To')}} :
{{!empty($customer->shipping_name)?$customer->shipping_name:''}}
{{!empty($customer->shipping_phone)?$customer->shipping_phone:''}}
{{!empty($customer->shipping_address)?$customer->shipping_address:''}}
{{!empty($customer->shipping_zip)?$customer->shipping_zip:''}}
{{!empty($customer->shipping_city)?$customer->shipping_city:'' . ', '}} {{!empty($customer->shipping_state)?$customer->shipping_state:'' .', '}},{{!empty($customer->shipping_country)?$customer->shipping_country:''}}
{{__('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')}}
{{\Auth::user()->dateFormat($payment->date)}} {{\Auth::user()->invoiceNumberFormat($payment->invoice_id)}} {{$payment->payment_type}} {{\Auth::user()->priceFormat(($payment->amount))}}

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

{{__('TOTAL :')}} {{\Auth::user()->priceFormat($total)}}
@endsection