@extends('layouts.admin') @section('page-title') {{__('Purchase Detail')}} @endsection @push('script-page') @endpush @section('breadcrumb')
{{__('Created on ')}}{{\Auth::user()->dateFormat($purchase->purchase_date)}}
@can('edit purchase') {{__('Edit')}} @endcan@if($purchase->status!=0) {{__('Sent on')}} {{\Auth::user()->dateFormat($purchase->send_date)}} @else @can('send purchase') {{__('Status')}} : {{__('Not Sent')}} @endcan @endif
@if($purchase->status==0) @can('send purchase') {{__('Send')}} @endcan @endif{{__('Status')}} : {{__('Awaiting payment')}}
@if($purchase->status!= 0) @can('create payment purchase') {{__('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($purchase->getSubTotal())}} | ||||||||
| {{__('Discount')}} | {{\Auth::user()->priceFormat($purchase->getTotalDiscount())}} | ||||||||
| CGST | {{ \Auth::user()->priceFormat($taxPrice/2) }} | ||||||||
| SGST | {{ \Auth::user()->priceFormat($taxPrice/2) }} | ||||||||
| IGST | {{ \Auth::user()->priceFormat($taxPrice) }} | ||||||||
| {{$taxName}} | {{ \Auth::user()->priceFormat($taxPrice) }} | ||||||||
| {{__('Total')}} | {{\Auth::user()->priceFormat($purchase->getTotal())}} | ||||||||
| {{__('Paid')}} | {{\Auth::user()->priceFormat(($purchase->getTotal()-$purchase->getDue()))}} | ||||||||
| --}} {{-- | {{__('Debit Note')}} | --}} {{--{{\Auth::user()->priceFormat(($purchase->billTotalDebitNote()))}} | --}} {{--|||||||
| {{__('Due')}} | {{\Auth::user()->priceFormat($purchase->getDue())}} | ||||||||