@extends('layouts/fams_layout') @section('title', '| Report') @section('content') @include('successMsg') @php use App\Service\UserUtility; $hasAccessToViewAllProjects = UserUtility::hasAccessToViewAllProjects(); @endphp
{!! Form::open(['url' => 'famsFixedAssetsTransferReport','method' => 'get']) !!} @php $userBranchId = Auth::user()->branchId; @endphp @if($userBranchId==1)
{!! Form::label('', 'Project:', ['class' => 'control-label pull-left']) !!}
@endif @if($userBranchId==1)
{!! Form::label('', 'Pro. Type:', ['class' => 'control-label pull-left']) !!}
@endif @if($userBranchId==1)
{!! Form::label('', 'Branch:', ['class' => 'control-label pull-left']) !!}
@endif
{!! Form::label('', 'Category:', ['class' => 'control-label pull-left']) !!}
{!! Form::label('', 'Pro. Type:', ['class' => 'control-label pull-left']) !!}
{!! Form::label('', 'Search By:', ['class' => 'control-label pull-left']) !!}
{!! Form::select('searchMethod',[''=>'Please Select','1'=>'Fiscal Year','2'=>'Current Year','3'=>'Date Range'],$searchMethodSelected,['id'=>'searchMethod','class'=>'form-control input-sm']) !!}
{!! Form::submit('Search',['id'=>'search','class'=>'btn btn-primary btn-xs','style'=>'font-size:15px;']) !!}
{!! Form::close() !!}
{{-- End Filtering Group --}}

Fixed Assets Transfer Report

@php if($branchSelected===0){ $selectedBranchName = "All Branches"; } else{ $selectedBranchName = DB::table('gnr_branch')->where('id',$branchSelected)->value('name'); } // $selectedProjectName = UserUtility::getUserAccessibleProjects()->where('id',$projectSelected)->value('name'); $selectedProjectTypeName = DB::table('gnr_project_type')->where('id',$projectTypeSelected)->value('name'); $selectedCategoryName = DB::table('fams_product_category')->where('id',$categorySelected)->value('name'); @endphp @if(!$firstRequest )

@php $totalCostPrice = 0; $totalAccDepreciation = 0; $totalWrittenDownValue = 0; @endphp @foreach($transfers as $key => $transfer) @php $productName = DB::table('fams_product')->where('id',$transfer->productId)->value('name'); $branchFrom = DB::table('gnr_branch')->where('id',$transfer->branchIdFrom)->value('name'); $branchTo = DB::table('gnr_branch')->where('id',$transfer->branchIdTo)->value('name'); @endphp @php $totalCostPrice = $totalCostPrice + $transfer->productTotalCost; @endphp @php $totalAccDepreciation = $totalAccDepreciation + $transfer->pastDep; @endphp @php $totalWrittenDownValue = $totalWrittenDownValue + $transfer->depRemainning; @endphp @endforeach
SL# Transfer Date Product Name Product ID Branch Name Transferred Amount (Tk)
Old Product ID Number New Product ID Number Old Branch New Branch Cost Price (Tk) Acc. Depreciation (Tk) Wri. Down Value (Tk)
{{$key+1}} {{date('d-m-Y',strtotime($transfer->transferDate))}} {{$productName}} {{$prefix.$transfer->oldProductCode}} {{$prefix.$transfer->newProductCode}} {{$branchFrom}} {{$branchTo}} {{number_format($transfer->productTotalCost,2)}}{{number_format($transfer->pastDep,2)}}{{number_format($transfer->depRemainning,2)}}
Total {{number_format($totalCostPrice,2)}} {{number_format($totalAccDepreciation,2)}} {{number_format($totalWrittenDownValue,2)}}
@endif
{{-- Filtering Mehod --}} {{-- End Filtering Mehod --}} {{-- Filtering --}}