@extends('layouts.admin') @section('page-title') {{ __('Invoice Detail') }} @endsection @php $settings_data = \App\Models\Utility::settingsById($invoice->created_by); $settings = App\Models\Utility::settings(); @endphp @push('css-page') @endpush @push('script-page') @endpush @section('breadcrumb') @if (\Auth::guard('customer')->check())
{{ __('Created on ') }}{{ \Auth::user()->dateFormat($invoice->issue_date) }}
@can('edit invoice') {{ __('Edit') }} @endcan@if ($invoice->status != 0) {{ __('Sent on') }} {{ \Auth::user()->dateFormat($invoice->send_date) }} @else @can('send invoice') {{ __('Status') }} : {{ __('Not Sent') }} @endcan @endif
@if ($invoice->status == 0) @can('send bill') {{ __('Send') }} @endcan @endif{{ __('Status') }} : {{ __('Awaiting payment') }}
@if ($invoice->status != 0) @can('create payment invoice') {{ __('Add Payment') }}| # | {{ __('Product') }} | {{ __('Quantity') }} | {{ __('Rate') }} | {{ __('Discount') }} | {{ __('Tax') }} | {{ __('Description') }} | {{ __('Price') }} {{ __('before tax & discount') }} |
||
|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ !empty($iteam->product) ? $iteam->product->name : '' }} | {{ $iteam->quantity }} ({{ $iteam->product->unit->name }}) | {{ \Auth::user()->priceFormat($iteam->price) }} | {{ \Auth::user()->priceFormat($iteam->discount) }} |
@if (!empty($iteam->tax))
|
{{ !empty($iteam->description) ? $iteam->description : '-' }} | @php $tr_tex = array_key_exists($key, $TaxPrice_array) == true ? $TaxPrice_array[$key] : 0; @endphp{{ \Auth::user()->priceFormat($iteam->price * $iteam->quantity - $iteam->discount + $tr_tex) }} | ||
| {{ __('Total') }} | {{ $totalQuantity }} | {{ \Auth::user()->priceFormat($totalRate) }} | {{ \Auth::user()->priceFormat($totalDiscount) }} | {{ \Auth::user()->priceFormat($totalTaxPrice) }} | |||||
| {{ __('Sub Total') }} | {{ \Auth::user()->priceFormat($invoice->getSubTotal()) }} | ||||||||
| {{ __('Discount') }} | {{ \Auth::user()->priceFormat($invoice->getTotalDiscount()) }} | ||||||||
| {{ $tax->name }} | {{ \Auth::user()->priceFormat($taxPrice) }} | ||||||||
| {{ $taxName }} | {{ \Auth::user()->priceFormat($taxPrice) }} | ||||||||
| {{ __('Total') }} | {{ \Auth::user()->priceFormat($invoice->getTotal()) }} | ||||||||
| {{ __('Paid') }} | {{ \Auth::user()->priceFormat($invoice->getTotal() - $invoice->getDue() - $invoice->invoiceTotalCreditNote()) }} | ||||||||
| {{ __('Credit Note') }} | {{ \Auth::user()->priceFormat($invoice->invoiceTotalCreditNote()) }} | ||||||||
| {{ __('Due') }} | {{ \Auth::user()->priceFormat($invoice->getDue()) }} | ||||||||
| {{ __('Date') }} | {{ __('Amount') }} | {{ __('Description') }} | @if (Gate::check('edit credit note') || Gate::check('delete credit note')){{ __('Action') }} | @endif
|---|---|---|---|
| {{ \Auth::user()->dateFormat($creditNote->date) }} | {{ \Auth::user()->priceFormat($creditNote->amount) }} | {{ $creditNote->description }} | @can('edit credit note') @endcan @can('delete credit note') @endcan |
|
{{ __('No Data Found') }} |
|||