dbfdg @extends('layouts.admin') @section('page-title') {{__('Bill Detail')}} @endsection @push('script-page') @endpush @php $settings = Utility::settings(); @endphp @section('breadcrumb')
{{__('Created on ')}}{{\Auth::user()->dateFormat($bill->bill_date)}}
@can('edit bill') {{__('Edit')}} @endcan@if($bill->status!=0) {{__('Sent on')}} {{\Auth::user()->dateFormat($bill->send_date)}} @else @can('send bill') {{__('Status')}} : {{__('Not Sent')}} @endcan @endif
@if($bill->status==0) @can('send bill') {{__('Send')}} @endcan @endif{{__('Status')}} : {{__('Awaiting payment')}}
@if($bill->status!=0) @can('create payment bill') {{__('Add Payment')}}# | {{__('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($bill->getAccountTotal())}} | |||||||
{{__('Sub Total')}} | {{\Auth::user()->priceFormat($bill->getSubTotal())}} | |||||||||||
{{__('Discount')}} | {{\Auth::user()->priceFormat($bill->getTotalDiscount())}} | |||||||||||
{{$taxName}} | {{ \Auth::user()->priceFormat($taxPrice) }} | |||||||||||
{{__('Total')}} | {{\Auth::user()->priceFormat($bill->getTotal())}} | |||||||||||
{{__('Paid')}} | {{\Auth::user()->priceFormat(($bill->getTotal()-$bill->getDue())-($bill->billTotalDebitNote()))}} | |||||||||||
{{__('Debit Note')}} | {{\Auth::user()->priceFormat(($bill->billTotalDebitNote()))}} | |||||||||||
{{__('Due')}} | {{\Auth::user()->priceFormat($bill->getDue())}} |
{{__('Date')}} | {{__('Amount')}} | {{__('Description')}} | @if(Gate::check('edit debit note') || Gate::check('delete debit note')){{__('Action')}} | @endif
---|---|---|---|
{{\Auth::user()->dateFormat($debitNote->date)}} | {{\Auth::user()->priceFormat($debitNote->amount)}} | {{$debitNote->description}} | @can('edit debit note') @endcan @can('delete debit note') @endcan |
{{__('No Data Found')}} |