@extends('layouts.main') @section('page-title') {{ __('Customer-Detail') }} @endsection @section('page-breadcrumb') {{ __('Customer') }},{{ $customer['name'] }} @endsection @push('css') @endpush @push('scripts') @endpush @section('page-action')
{{ $customer['name'] }}
{{ $customer['email'] }}
{{ $customer['contact'] }}
@if(!empty($customFields) && count($customer->customField)>0) @foreach($customFields as $field){{$field->name}} : {{!empty($customer->customField[$field->id])?$customer->customField[$field->id]:'-'}}
@endforeach @endif @stack('show_electronic_address'){{ $customer['billing_name'] }}
{{ $customer['billing_phone'] }}
{{ $customer['billing_address'] }}
{{ $customer['billing_city'] . ', ' . $customer['billing_state'] . ', ' . $customer['billing_country'] }}
{{ $customer['billing_zip'] }}
{{ $customer['shipping_name'] }}
{{ $customer['shipping_phone'] }}
{{ $customer['shipping_address'] }}
{{ $customer['shipping_city'] . ', ' . $customer['shipping_state'] . ', ' . $customer['shipping_country'] }}
{{ $customer['shipping_zip'] }}
@endif{{ __('Customer Id') }}
{{ __('Total Sum of Invoices') }}
{{ __('Date of Creation') }}
{{ __('Quantity of Invoice') }}
{{ __('Balance') }}
{{ __('Average Sales') }}
{{ __('Overdue') }}
| {{ __('Proposal') }} | {{ __('Issue Date') }} | {{ __('Amount') }} | {{ __('Status') }} | @if (Gate::check('proposal edit') || Gate::check('proposal delete') || Gate::check('proposal show')){{ __('Action') }} | @endif
|---|---|---|---|---|
| @can('proposal show') {{ \App\Models\Proposal::proposalNumberFormat($proposal->proposal_id) }} @else {{ \App\Models\Proposal::proposalNumberFormat($proposal->proposal_id) }} @endcan | {{ company_date_formate($proposal->issue_date) }} | {{ currency_format_with_sym($proposal->getTotal()) }} | @if ($proposal->status == 0) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 1) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 2) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 3) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @elseif($proposal->status == 4) {{ __(\App\Models\Proposal::$statues[$proposal->status]) }} @endif | @if (Gate::check('proposal edit') || Gate::check('proposal delete') || Gate::check('proposal show'))
@if ($proposal->is_convert == 0)
@can('proposal convert invoice')
{!! Form::open([
'method' => 'get',
'route' => ['proposal.convert', $proposal->id],
'id' => 'proposal-form-' . $proposal->id,
]) !!}
{{ Form::close() }}
@endcan
@else
@can('invoice show')
@endcan
@endif
@can('duplicate proposal')
@endcan
@can('proposal show')
@if (\Auth::user()->type == 'client')
@else
@endif
@endcan
@can('proposal edit')
@endcan
@can('proposal delete')
@endcan
|
@endif
| {{ __('Invoice') }} | {{ __('Issue Date') }} | {{ __('Due Date') }} | {{ __('Due Amount') }} | {{ __('Status') }} | @if (Gate::check('invoice edit') || Gate::check('invoice delete') || Gate::check('invoice show')){{ __('Action') }} | @endif
|---|---|---|---|---|---|
| @can('invoice show') {{ \App\Models\Invoice::invoiceNumberFormat($invoice->invoice_id) }} @else {{ \App\Models\Invoice::invoiceNumberFormat($invoice->invoice_id) }} @endcan | {{ company_date_formate($invoice->issue_date) }} |
@if ($invoice->due_date < date('Y-m-d'))
{{ company_date_formate($invoice->due_date) }} @else {{ company_date_formate($invoice->due_date) }} @endif |
{{ currency_format_with_sym($invoice->getDue()) }} | @if ($invoice->status == 0) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 1) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 2) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 3) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 4) {{ __(\App\Models\Invoice::$statues[$invoice->status]) }} @endif | @if (Gate::check('invoice edit') || Gate::check('invoice delete') || Gate::check('invoice show'))@can('duplicate invoice') @endcan @can('invoice show') @if (\Auth::user()->type == 'client') @else @endif @endcan @can('invoice edit') @endcan @can('invoice delete') @endcan | @endif
| {{ __('Date') }} | {{ __('Amount') }} | {{ __('Account') }} | {{ __('Category') }} | {{ __('Reference') }} | {{ __('Description') }} | {{ __('Payment Receipt') }} | @if (Gate::check('revenue edit') || Gate::check('revenue delete')){{ __('Action') }} | @endif|
|---|---|---|---|---|---|---|---|---|
| {{ company_date_formate($revenue->date) }} | {{ currency_format_with_sym($revenue->amount) }} | {{ !empty($revenue->bankAccount) ? $revenue->bankAccount->bank_name . ' ' . $revenue->bankAccount->holder_name : '' }} | @if (module_is_active('ProductService')){{ !empty($revenue->category) ? $revenue->category->name : '-' }} | @else- | @endif{{ !empty($revenue->reference) ? $revenue->reference : '-' }} | @if (!empty($revenue->add_receipt)) @else - @endif | @if (Gate::check('revenue edit') || Gate::check('revenue delete'))@can('revenue edit') @endcan @can('revenue delete') @endcan | @endif
| {{__('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 :')}} | @foreach($invoice_payment as $key=>$payment) @php $total += $payment->amount; @endphp @endforeach | {{currency_format_with_sym($total)}} | |||