@php $avatar = asset('/dist/img/avatar5.png'); @endphp

{{__('Customer Profile')}}

@include('partials.flash')
User profile picture

{{$customer->name}}

  • {{__('Balance')}} {{currencySymbol().$customer->prev_balance}}
  • {{__('Total Sales')}} {{$total_sales}}
{{__('Add Payment')}}

{{__('Add Payment')}}

{{ Form::open(['route'=>'customerpayments.store']) }}
{{ Form::select('payment_type', $payment_types, null, array('class' => 'form-control','placeholder'=>'Select payment type','required')) }}
{{Form::select('account_id', $accounts, null, ['class'=>'form-control', 'placeholder'=>'Select Account', 'required'])}}
{{ Form::hidden('customer_id', $customer->id, ['class'=>'form-control']) }} {{ Form::number('payment', null, ['class'=>'form-control', 'placeholder'=>'Amount', 'required']) }}
{{ Form::text('comments', null, ['class'=>'form-control','placeholder'=>'Comments']) }}
{{ Form::submit('Add Payment', ['class'=>'btn btn-success', 'onclick'=>"$('.modal-backdrop').remove()"]) }}
{{ Form::close() }}

{{__('Last Payment History')}}

@foreach($customer_payments as $customer_payment) @endforeach @foreach($sale_payments as $sale_payment) @endforeach
{{__('Date')}} {{__('Payment')}}
{{$customer_payment->created_at->format('M d')}} {{currencySymbol().$customer_payment->payment}}
{{$sale_payment->created_at->format('M d')}} {{currencySymbol().$sale_payment->payment}}

All Sales

@include('agents.partials.sale_table', ['salereport'=>$sales, 'type'=>'customer'])