@extends('layouts/fams_layout') @section('title', '| Report') @section('content') @include('successMsg') @php use App\Service\UserUtility; $hasAccessToViewAllProjects = UserUtility::hasAccessToViewAllProjects(); @endphp
| SL# | Purchase Date | Product Name | Product ID Number | Branch | Cost Value (Tk) | Accmulated Depreciation (Tk) | Written Down Value | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Opening Balance | Curr. Period Add | Curr. Period Less | Closing Balance | Dep. Rate(%) | Opening Balance | Current Period Add/Less | Closing Balance | ||||||||||||||
| Purchase | Adjustment | Transfer | Sales | Adjustment | Transfer | Depreciation | Disposal | Transfer In | Transfer Out | Adjustment | |||||||||||
| {{$index}} | {{date('d-m-Y', strtotime($product->purchaseDate))}} | {{$product->name}} | {{$prefix.$productCode}} | {{$branchName}} | @if($openingBalance==0) {{""}} @else {{$openingBalance}} @endif @php $totalOpeningBalnace = $totalOpeningBalnace + $openingBalance; @endphp | @if($purchase==0) {{""}} @else {{$purchase}} @endif @php $totalPurchase = $totalPurchase + $purchase; @endphp | @if($adjustmentIn==0) {{""}} @else {{$adjustmentIn}} @endif @php $totalAdjustmentIn = isset($totalAdjustmentIn) ? $totalAdjustmentIn + $adjustmentIn : $adjustmentIn;@endphp | @if($transferInAmount==0) {{""}} @else {{$transferInAmount}} @endif @php $totalTransferIn = isset($totalTransferIn) ? $totalTransferIn + $transferInAmount : $transferInAmount;@endphp | @if($saleAmount==0) {{""}} @else {{$saleAmount}} @endif @php $totalSale = $totalSale + $saleAmount; @endphp | @if($adjustmentOut==0) {{""}} @else {{$adjustmentOut}} @endif @php $totalAdjustmentOut = $totalAdjustmentOut + $adjustmentOut; @endphp | @if($transferOutAmount==0) {{""}} @else {{$transferOutAmount}} @endif @php $totalTransferOut = $totalTransferOut + $transferOutAmount; @endphp | {{$closingBalance}} @php $totalClosing = $totalClosing + $closingBalance; @endphp | {{$product->depreciationPercentage}} | @if($accDep==0) {{""}} @else {{number_format($accDep,2)}} @endif @php $totalDepOpeningBalance = $totalDepOpeningBalance + $accDep; @endphp | @if($currentAccDep==0) {{""}} @else {{number_format($currentAccDep,2)}} @endif @php $totalCurrentDep = $totalCurrentDep + $currentAccDep; @endphp | @if($depDisposalamount==0) {{""}} @else {{number_format($depDisposalamount,2)}} @endif @php $totalDisposalAmount = $totalDisposalAmount + $depDisposalamount; @endphp | @if($depTransferInAmount==0) {{""}} @else {{number_format($depTransferInAmount,2)}} @endif @php $totalDepTransferIn = $totalDepTransferIn + $depTransferInAmount; @endphp | @if($depTransferOutAmount==0) {{""}} @else {{number_format($depTransferOutAmount,2)}} @endif @php $totalDepTransferOut = $totalDepTransferOut + $depTransferOutAmount; @endphp | @if($depAdjustment==0) {{""}} @else {{number_format($depAdjustment,2)}} @endif @php $totalDepAdjustment = $totalDepAdjustment + $depAdjustment; @endphp | {{number_format($depClosingBalance,2)}} @php $totalDepClosingBalance = $totalDepClosingBalance + $depClosingBalance; @endphp | {{number_format($closingBalance - $depClosingBalance,2)}} @php $totalWrittenDown = $totalWrittenDown + $closingBalance - $depClosingBalance; @endphp |
| Total | {{$totalOpeningBalnace}} | {{$totalPurchase}} | {{$totalAdjustmentIn}} | {{$totalTransferIn}} | {{$totalSale}} | {{$totalAdjustmentOut}} | {{$totalTransferOut}} | {{$totalClosing}} | {{number_format($totalDepOpeningBalance,2)}} | {{number_format($totalCurrentDep,2)}} | {{number_format($totalDisposalAmount,2)}} | {{number_format($totalDepTransferIn,2)}} | {{number_format($totalDepTransferOut,2)}} | {{number_format($totalDepAdjustment,2)}} | {{number_format($totalDepClosingBalance,2)}} | {{number_format($totalWrittenDown,2)}} | |||||