@extends('layouts.main') @section('page-title') {{ __('Vendor-Detail') }} @endsection @section('page-breadcrumb') {{ __('Vendor-Detail') }} @endsection @push('scripts') @endpush @push('css') @endpush @section('page-action')
{{$vendor->name}}
{{$vendor->email}}
{{$vendor->contact}}
@if(!empty($customFields) && count($vendor->customField)>0) @foreach($customFields as $field){{$field->name}} : {{!empty($vendor->customField[$field->id])?$vendor->customField[$field->id]:'-'}}
@endforeach @endif{{$vendor->billing_name}}
{{$vendor->billing_address}}
{{$vendor->billing_city.' ,'. $vendor->billing_state .' ,'.$vendor->billing_zip}}
{{$vendor->billing_country}}
{{$vendor->billing_phone}}
{{$vendor->shipping_name}}
{{$vendor->shipping_address}}
{{$vendor->shipping_city.' ,'. $vendor->shipping_state .' ,'.$vendor->shipping_zip}}
{{$vendor->shipping_country}}
{{$vendor->shipping_phone}}
@endif{{__('Vendor Id')}}
{{__('Total Sum of Bills')}}
{{__('Date of Creation')}}
{{__('Quantity of Bills')}}
{{__('Balance')}}
{{__('Average Sales')}}
{{__('Overdue')}}
| {{__('Bill')}} | {{__('Bill Date')}} | {{__('Due Date')}} | {{__('Due Amount')}} | {{__('Status')}} | @if(Gate::check('bill edit') || Gate::check('bill delete') || Gate::check('bill show')){{__('Action')}} | @endif
|---|---|---|---|---|---|
| @can('bill show') {{ Modules\Account\Entities\Bill::billNumberFormat($bill->bill_id) }} @else {{ Modules\Account\Entities\Bill::billNumberFormat($bill->bill_id) }} @endcan | {{ company_date_formate($bill->bill_date) }} |
@if(($bill->due_date < date('Y-m-d')))
{{ company_date_formate($bill->due_date) }} @else {{ company_date_formate($bill->due_date) }} @endif |
{{ currency_format_with_sym($bill->getDue()) }} | @if($bill->status == 0) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @elseif($bill->status == 1) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @elseif($bill->status == 2) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @elseif($bill->status == 3) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @elseif($bill->status == 4) {{ __(\App\Models\Invoice::$statues[$bill->status]) }} @endif | @if(Gate::check('bill edit') || Gate::check('bill delete') || Gate::check('bill show'))@can(' bill duplicate') @endcan @can('bill show') @endcan @can('bill edit') @endcan @can('bill delete') @endcan | @endif
| {{ __('Date') }} | {{ __('Amount') }} | {{ __('Account') }} | {{ __('Category') }} | {{ __('Reference') }} | {{ __('Description') }} | {{ __('Payment Receipt') }} | @if (Gate::check('expense payment delete') || Gate::check('expense payment edit')){{ __('Action') }} | @endif|
|---|---|---|---|---|---|---|---|---|
| {{ company_date_formate($payment->date) }} | {{ currency_format_with_sym($payment->amount) }} | {{ !empty($payment->bankAccount) ? $payment->bankAccount->bank_name . ' ' . $payment->bankAccount->holder_name : '' }} | @if (module_is_active('ProductService')){{ !empty($payment->category) ? $payment->category->name : '-' }} | @else- | @endif{{ !empty($payment->reference) ? $payment->reference : '-' }} | @if (!empty($payment->add_receipt)) @else - @endif | @if (Gate::check('expense payment delete') || Gate::check('expense payment edit'))@can('expense payment edit') @endcan @can('expense payment delete') @endcan | @endif
| {{__('Date')}} | {{__('Bill')}} | {{__('Amount')}} | |||
|---|---|---|---|---|---|
| {{ company_date_formate($payment->date)}} | {{\Modules\Account\Entities\Bill::billNumberFormat($payment->bill_id)}} | {{currency_format_with_sym(($payment->amount))}} | @empty|||
{{__('No Data Found')}} |
|||||
| {{__('TOTAL :')}} | @foreach($bill_payment as $key=>$payment) @php $total += $payment->amount; @endphp @endforeach | {{currency_format_with_sym($total)}} | |||