@extends('layouts.main') @section('page-title') {{__('Purchase Detail')}} @endsection @push('scripts') @endpush @section('page-breadcrumb') {{__('Purchase')}}, {{\Modules\Pos\Entities\Purchase::purchaseNumberFormat($purchase->purchase_id) }} @endsection @push('css') @endpush @section('content') @can('purchase send') @if($purchase->status!=4)
{{__('Created on ')}}{{company_date_formate($purchase->purchase_date)}}
@can('purchase edit') {{__('Edit')}} @endcan@if($purchase->status!=0) {{__('Sent on')}} {{company_date_formate($purchase->send_date)}} @else @can('purchase send') {{__('Status')}} : {{__('Not Sent')}} @endcan @endif
@if($purchase->status==0) @can('purchase send') {{__('Send')}} @endcan @endif{{__('Status')}} : {{__('Awaiting payment')}}
@if($purchase->status!= 0) @can('purchase payment create') {{__('Add Payment')}}| # | {{__('Item Type')}} | {{__('Item')}} | {{__('Quantity')}} | {{__('Rate')}} | {{__('Discount')}} | {{__('Tax')}} | {{__('Description')}} | {{__('Price')}} {{__('After discount & tax')}} |
||
|---|---|---|---|---|---|---|---|---|---|---|
| {{$key+1}} | {{!empty($iteam->product_type) ? Str::ucfirst($iteam->product_type) : '--'}} | {{!empty($iteam->product())?$iteam->product()->name:''}} | {{$iteam->quantity}} | {{currency_format_with_sym($iteam->price)}} | {{currency_format_with_sym($iteam->discount)}} |
@if(!empty($iteam->tax))
|
{{!empty($iteam->description)?$iteam->description:'-'}} | {{ currency_format_with_sym(($iteam->price * $iteam->quantity - $iteam->discount) + $totalTaxPrice)}} | {{--text-right--}}||
| {{__('Total')}} | {{$totalQuantity}} | {{currency_format_with_sym($totalRate)}} | {{currency_format_with_sym($totalDiscount)}} | {{currency_format_with_sym($totalTaxPrice)}} | ||||||
| {{__('Sub Total')}} | {{currency_format_with_sym($purchase->getSubTotal())}} | |||||||||
| {{__('Discount')}} | {{currency_format_with_sym($purchase->getTotalDiscount())}} | |||||||||
| {{$taxName}} | {{ currency_format_with_sym($taxPrice) }} | |||||||||
| {{__('Total')}} | {{currency_format_with_sym($purchase->getTotal())}} | |||||||||
| {{__('Paid')}} | {{currency_format_with_sym(($purchase->getTotal()-$purchase->getDue()))}} | |||||||||
| {{__('Debit Note')}} | {{ currency_format_with_sym(($purchase->purchaseTotalDebitNote()))}} | |||||||||
| {{__('Due')}} | {{currency_format_with_sym($purchase->getDue())}} | |||||||||
| {{__('Payment Receipt')}} | {{__('Date')}} | {{__('Amount')}} | {{__('Account')}} | {{__('Reference')}} | {{__('Description')}} | @can('purchase payment delete'){{__('Action')}} | @endcan
|---|---|---|---|---|---|---|
| @if(!empty($payment->add_receipt)) @else - @endif | {{ company_date_formate($payment->date)}} | {{ currency_format_with_sym($payment->amount)}} | {{!empty($payment->bankAccount)?$payment->bankAccount->bank_name.' '.$payment->bankAccount->holder_name:''}} | {{$payment->reference}} | {{$payment->description}} | @can('purchase payment delete') @endcan |
| {{__('Date')}} | {{__('Amount')}} | {{__('Description')}} | @if(Gate::check('purchase debitnote edit') || Gate::check('purchase debitnote delete')){{__('Action')}} | @endif
|---|---|---|---|
| {{ company_date_formate($debitNote->date)}} | {{ currency_format_with_sym($debitNote->amount)}} | {{$debitNote->description}} | @can('purchase debitnote edit') @endcan @can('purchase debitnote delete') @endcan |
| {{__('#')}} | {{__('File Name')}} | {{__('File Size')}} | {{__('Date Created')}} | {{-- @if(Gate::check('purchase debitnote edit') || Gate::check('purchase debitnote delete')) --}}{{__('Action')}} | {{-- @endif --}}
|---|---|---|---|---|
| {{ ++$key }} | {{ $attachment->file_name }} | {{ $attachment->file_size }} | {{ company_date_formate($attachment->created_at) }} | {{-- @can('purchase attachment edit') --}} {{-- @endcan @can('purchase attachment delete') --}} {{-- @endcan --}} |