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

{{$vendor['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 pc-datepicker-1')) }}
{{Form::close()}}
{{__('My Company')}}
{{ $user->email }}
{{__('Statement of Account')}}
{{($data['from_date']).' '.'to'.' '.($data['until_date'])}}

@if(!empty($vendor->billing_name))
{{__('Billed To')}} :
{{!empty($vendor->billing_name)?$vendor->billing_name:''}}
{{!empty($vendor->billing_phone)?$vendor->billing_phone:''}}
{{!empty($vendor->billing_address)?$vendor->billing_address:''}}
{{!empty($vendor->billing_zip)?$vendor->billing_zip:''}}
{{!empty($vendor->billing_city)?$vendor->billing_city:'' .', '}} {{!empty($vendor->billing_state)?$vendor->billing_state:'',', '}} {{!empty($vendor->billing_country)?$vendor->billing_country:''}}
{{__('Tax Number ')}} : {{!empty($vendor->tax_number)?$vendor->tax_number:''}}
@endif @if(\App\Models\Utility::getValByName('shipping_display')=='on')
{{__('Shipped To')}} :
{{!empty($vendor->shipping_name)?$vendor->shipping_name:''}}
{{!empty($vendor->shipping_phone)?$vendor->shipping_phone:''}}
{{!empty($vendor->shipping_address)?$vendor->shipping_address:''}}
{{!empty($vendor->shipping_zip)?$vendor->shipping_zip:''}}
{{!empty($vendor->shipping_city)?$vendor->shipping_city:'' . ', '}} {{!empty($vendor->shipping_state)?$vendor->shipping_state:'' .', '}},{{!empty($vendor->shipping_country)?$vendor->shipping_country:''}}
{{__('Tax Number ')}} : {{!empty($vendor->tax_number)?$vendor->tax_number:''}}
@endif
@php $total = 0; @endphp @forelse($bill_payment as $payment) @empty @endforelse @foreach($bill_payment as $key=>$payment) @php $total += $payment->amount; @endphp @endforeach
{{__('Date')}} {{__('Invoice')}} {{__('Amount')}}
{{\Auth::user()->dateFormat($payment->date)}} {{\Auth::user()->invoiceNumberFormat($payment->invoice_id)}} {{\Auth::user()->priceFormat(($payment->amount))}}

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

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