@extends('layouts.main') @section('page-title') {{ __('Purchase Detail') }} @endsection @push('scripts') @endpush @section('page-breadcrumb') {{ __('Purchase') }}, {{ App\Models\Purchase::purchaseNumberFormat($purchase->purchase_id) }} @endsection @push('css') @if (module_is_active('Signature')) @endif @endpush @section('page-action')
@endsection @section('content') @if (\Auth::user()->type == 'company') @permission('purchase send') @if ($purchase->status != 4){{ __('Created on ') }}{{ company_date_formate($purchase->purchase_date) }}
@permission('purchase edit') {{ __('Edit') }} @endpermission@if ($purchase->status != 0) {{ __('Sent on') }} {{ company_date_formate($purchase->send_date) }} @else @permission('purchase send') {{ __('Status') }} : {{ __('Not Sent') }} @endpermission @endif
@if ($purchase->status == 0) @permission('purchase send') {{ __('Send') }} @endpermission @endif{{ __('Status') }} : @if ($purchase->status == 0) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @elseif($purchase->status == 1) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @elseif($purchase->status == 2) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @elseif($purchase->status == 3) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @elseif($purchase->status == 4) {{ __(App\Models\Purchase::$statues[$purchase->status]) }} @endif
@if ($purchase->status != 0) @permission('purchase payment create') {{ __(' Add Payment') }}{{ __('Purchase Date')}} : {{ company_date_formate($purchase->purchase_date) }}
@if (empty($purchase->vender_name)) {{ __('Name ') }} : {{ !empty($vendor->name) ? $vendor->name : '' }} @else {{ __('Vendor Name ') }} : {{ !empty($purchase->vender_name) ? $purchase->vender_name : '' }} @endif
{{ __('Billed To') }} : {{ !empty($vendor->billing_name) ? $vendor->billing_name : '' }} {{ !empty($vendor->billing_address) ? $vendor->billing_address : '' }} {{ !empty($vendor->billing_city) ? $vendor->billing_city . ' ,' : '' }} {{ !empty($vendor->billing_state) ? $vendor->billing_state . ' ,' : '' }} {{ !empty($vendor->billing_zip) ? $vendor->billing_zip : '' }} {{ !empty($vendor->billing_country) ? $vendor->billing_country : '' }}
{{ !empty($vendor->billing_phone) ? $vendor->billing_phone : '' }}
{{ __('Tax Number ') }} : {{ !empty($vendor->tax_number) ? $vendor->tax_number : '' }}
@if ($purchase->company_signature)
{{ __('Email ') }} : {{ !empty($vendor->email) ? $vendor->email : '' }}
@endif{{ __('Shipped To') }} : {{ !empty($vendor->shipping_name) ? $vendor->shipping_name : '' }} {{ !empty($vendor->shipping_address) ? $vendor->shipping_address : '' }} {{ !empty($vendor->shipping_city) ? $vendor->shipping_city . ' ,' : '' }} {{ !empty($vendor->shipping_state) ? $vendor->shipping_state . ' ,' : '' }} {{ !empty($vendor->shipping_zip) ? $vendor->shipping_zip : '' }} {{ !empty($vendor->shipping_country) ? $vendor->shipping_country : '' }}
{{ !empty($vendor->shipping_phone) ? $vendor->shipping_phone : '' }}
{{ __('Tax Number ') }} : {{ !empty($vendor->tax_number) ? $vendor->tax_number : '' }}
@if ($purchase->vendor_signature != '')
# | {{ __('Item Type') }} | {{ __('Item') }} | {{ __('Quantity') }} | {{ __('Rate') }} | {{ __('Discount') }} | {{ __('Tax') }} | {{ __('Description') }} |
{{ __('Price') }} {{ __('After discount & tax') }} |
||
---|---|---|---|---|---|---|---|---|---|---|
{{ $key + 1 }} | {{ !empty($iteam->product_type) ? Str::ucfirst($iteam->product_type) : '--' }} | {{ !empty($iteam->product) ? $iteam->product->name : '' }} | {{ $iteam->quantity }} | {{ currency_format_with_sym($iteam->price) }} | {{ currency_format_with_sym($iteam->discount) }} |
@if (!empty($iteam->tax))
|
{{ !empty($iteam->description) ? $iteam->description : '-' }} | {{ currency_format_with_sym($iteam->price * $iteam->quantity - $iteam->discount + $totalTaxPrice) }} | ||
{{ __('Total') }} | {{ $totalQuantity }} | {{ currency_format_with_sym($totalRate) }} | {{ currency_format_with_sym($totalDiscount) }} | {{ currency_format_with_sym($totalTaxPrice) }} | ||||||
{{ __('Sub Total') }} | {{ currency_format_with_sym($purchase->getSubTotal()) }} | |||||||||
{{ __('Discount') }} | {{ currency_format_with_sym($purchase->getTotalDiscount()) }} | |||||||||
{{ $taxName }} | {{ currency_format_with_sym($taxPrice) }} | |||||||||
{{ __('Total') }} | {{ currency_format_with_sym($purchase->getTotal()) }} | |||||||||
{{ __('Paid') }} | {{ currency_format_with_sym($purchase->getTotal() - $getdue) }} | |||||||||
{{ __('Debit Note') }} | {{ currency_format_with_sym($purchase->purchaseTotalDebitNote()) }} | |||||||||
{{ __('Due') }} | {{ currency_format_with_sym($getdue) }} |
{{ __('Payment Receipt') }} | {{ __('Date') }} | {{ __('Amount') }} | {{ __('Account') }} | {{ __('Reference') }} | {{ __('Description') }} | @permission('purchase payment delete'){{ __('Action') }} | @endpermission
---|---|---|---|---|---|---|
@if (!empty($payment->add_receipt)) @else - @endif | {{ company_date_formate($payment->date) }} | {{ currency_format_with_sym($payment->amount) }} | {{ !empty($payment->bankAccount) ? $payment->bankAccount->bank_name . ' ' . $payment->bankAccount->holder_name : '' }} | {{ $payment->reference }} | {{ isset($payment->description) ? $payment->description : '-' }} | @permission('purchase payment delete') @endpermission |
{{ __('Debit Note') }} | {{ __('Date') }} | {{ __('Amount') }} | {{ __('Description') }} | @if (Laratrust::hasPermission('purchase debitnote edit') || Laratrust::hasPermission('purchase debitnote delete')){{ __('Action') }} | @endif
---|---|---|---|---|
{{ !empty($debitNote->debitNote) ? \Workdo\Account\Entities\CustomerDebitNotes::debitNumberFormat($debitNote->debitNote->debit_id) : '-' }} | {{ company_date_formate($debitNote->date) }} | {{ currency_format_with_sym($debitNote->amount) }} | {{ isset($debitNote->description) ? $debitNote->description :'-' }} | @permission('purchase debitnote edit') @endpermission @permission('purchase debitnote delete') @endpermission |
{{ __('#') }} | {{ __('File Name') }} | {{ __('File Size') }} | {{ __('Date Created') }} | {{ __('Action') }} |
---|---|---|---|---|
{{ ++$key }} | {{ $attachment->file_name }} | {{ $attachment->file_size }} | {{ company_date_formate($attachment->created_at) }} |
{{ __('Payment Receipt') }} | {{ __('Date') }} | {{ __('Amount') }} | {{ __('Account') }} | {{ __('Reference') }} | {{ __('Description') }} |
---|---|---|---|---|---|
@if (!empty($payment->add_receipt)) @else - @endif | {{ company_date_formate($payment->date) }} | {{ currency_format_with_sym($payment->amount) }} | {{ !empty($payment->bankAccount) ? $payment->bankAccount->bank_name . ' ' . $payment->bankAccount->holder_name : '' }} | {{ $payment->reference }} | {{ isset($payment->description) ? $payment->description : '-' }} |