@extends('layouts.admin') @section('page-title') {{__('Bill Detail')}} @endsection @push('script-page') @endpush @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')}} | {{__('Tax')}} | @if($bill->discount_apply==1) {{__('Discount')}} @endif | {{__('Description')}} | {{__('Price')}} {{__('before tax & discount')}} |
||
---|---|---|---|---|---|---|---|---|---|
{{$key+1}} | {{!empty($iteam->product())?$iteam->product()->name:''}} | {{$iteam->quantity}} | {{\Auth::user()->priceFormat($iteam->price)}} |
@if(!empty($iteam->tax))
|
@if($bill->discount_apply==1) {{\Auth::user()->priceFormat($iteam->discount)}} @endif | {{!empty($iteam->description)?$iteam->description:'-'}} | {{\Auth::user()->priceFormat(($iteam->price*$iteam->quantity))}} | ||
{{__('Total')}} | {{$totalQuantity}} | {{\Auth::user()->priceFormat($totalRate)}} | {{\Auth::user()->priceFormat($totalTaxPrice)}} | @if($bill->discount_apply==1) {{\Auth::user()->priceFormat($totalDiscount)}} @endif | |||||
{{__('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())}} |