dbfdg @extends('layouts.admin') @section('page-title') {{__('Expense Detail')}} @endsection @push('script-page') @endpush @php $settings = Utility::settings(); @endphp @section('breadcrumb')
# | {{__('Product')}} | {{__('Quantity')}} | {{__('Rate')}} | {{__('Discount')}} | {{__('Tax')}} | {{__('Chart Of Account')}} | {{__('Account Amount')}} | {{__('Description')}} | {{__('Price')}} {{__('after tax & discount')}} |
|||
---|---|---|---|---|---|---|---|---|---|---|---|---|
{{$key+1}} | @php $productName = $item->product; $totalQuantity += $item->quantity; $totalRate += $item->price; $totalDiscount += $item->discount; @endphp{{!empty($productName)?$productName->name:'-'}} | {{ $item->quantity . ' (' . $productName->unit->name . ')' }} | {{\Auth::user()->priceFormat($item->price)}} | {{\Auth::user()->priceFormat($item->discount)}} |
@if (!empty($item->tax))
|
@php
$chartAccount = \App\Models\ChartOfAccount::find($item->chart_account_id);
@endphp
{{!empty($chartAccount) ? $chartAccount->name : '-'}} | {{\Auth::user()->priceFormat($item->amount)}} | {{!empty($item->description)?$item->description:'-'}} | {{\Auth::user()->priceFormat(($item->price * $item->quantity - $item->discount) + $totalTaxPrice)}} | |||
{{$key+1}} | - | - | - | - | - | @php $chartAccount = \App\Models\ChartOfAccount::find($item['chart_account_id']); @endphp{{!empty($chartAccount) ? $chartAccount->name : '-'}} | {{\Auth::user()->priceFormat($item['amount'])}} | - | {{\Auth::user()->priceFormat($item['amount'])}} | |||
{{__('Total')}} | {{$totalQuantity}} | {{\Auth::user()->priceFormat($totalRate)}} | {{\Auth::user()->priceFormat($totalDiscount)}} | {{\Auth::user()->priceFormat($totalTaxPrice)}} | {{\Auth::user()->priceFormat($expense->getAccountTotal())}} | |||||||
{{__('Sub Total')}} | {{\Auth::user()->priceFormat($expense->getSubTotal())}} | |||||||||||
{{__('Discount')}} | {{\Auth::user()->priceFormat($expense->getTotalDiscount())}} | |||||||||||
{{$taxName}} | {{ \Auth::user()->priceFormat($taxPrice) }} | |||||||||||
{{__('Total')}} | {{\Auth::user()->priceFormat($expense->getTotal())}} | |||||||||||
{{__('Paid')}} | {{\Auth::user()->priceFormat(($expense->getTotal()-$expense->getDue())-($expense->billTotalDebitNote()))}} |