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