@extends('layouts.main') @section('page-title') {{ __('Vendor Detail') }} @endsection @section('page-breadcrumb') {{ __('Vendor Detail') }} @endsection @push('scripts') @endpush @push('css') @endpush @php $company_settings = getCompanyAllSetting(); $company_settings['bill_shipping_display'] = isset($company_settings['bill_shipping_display']) ? $company_settings['bill_shipping_display'] : 'off'; @endphp @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 (Laratrust::hasPermission('bill edit') || Laratrust::hasPermission('bill delete') || Laratrust::hasPermission('bill show') || Laratrust::hasPermission('bill duplicate')){{ __('Action') }} | @endif
---|---|---|---|---|---|
@permission('bill show') {{ Workdo\Account\Entities\Bill::billNumberFormat($bill->bill_id) }} @else {{ Workdo\Account\Entities\Bill::billNumberFormat($bill->bill_id) }} @endpermission | {{ 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 (Laratrust::hasPermission('bill edit') || Laratrust::hasPermission('bill delete') || Laratrust::hasPermission('bill show'))@permission(' bill duplicate') @endpermission @permission('bill show') @endpermission @permission('bill edit') @endpermission @permission('bill delete') @endpermission | @endif
{{ __('Date') }} | {{ __('Amount') }} | {{ __('Account') }} | {{ __('Category') }} | {{ __('Reference') }} | {{ __('Description') }} | {{ __('Payment Receipt') }} | @if (Laratrust::hasPermission('expense payment delete') || Laratrust::hasPermission('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 (Laratrust::hasPermission('expense payment delete') || Laratrust::hasPermission('expense payment edit'))@permission('expense payment edit') @endpermission @permission('expense payment delete') @endpermission | @endif
@if (!empty($settings['company_address']))
{{ $settings['company_address'] }}
@endif
@if (!empty($settings['company_city']))
{{ $settings['company_city'] }},
@endif
@if (!empty($settings['company_state']))
{{ $settings['company_state'] }}
@endif
@if (!empty($settings['company_country']))
{{ $settings['company_country'] }}
@endif
@if (!empty($settings['company_zipcode']))
- {{ $settings['company_zipcode'] }}
@endif
{{ __('Balance') }} : {{ currency_format_with_sym($vendor->balance) }}
{{ __('Billed amount') }} : {{ currency_format_with_sym($totalBillSum) }}
{{ __('Amount Paid') }} : {{ currency_format_with_sym($total) }}
{{ __('Balance Due') }} : {{ currency_format_with_sym($duebalance) }}
{{ __('Date') }} | {{ __('Bill') }} | {{ __('Amount') }} | |||
---|---|---|---|---|---|
{{ company_date_formate($payment->date) }} | {{ \Workdo\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) }} |