@extends('layouts/fams_layout') @section('title', '| Write Off') @section('content') @include('successMsg')
@if (session('writeOffDelete'))
× Info! {{ session('writeOffDelete') }}
@endif

WRITE OFF LIST

@foreach($writeOffs as $writeOff) @php $productName = DB::table('fams_product')->where('id',$writeOff->productId)->value('name'); $productCode = DB::table('fams_product')->where('id',$writeOff->productId)->value('productCode'); @endphp @endforeach
SL# Write Off Date Write Off ID Product Name Product ID Number
Product Information
Cost Price(TK) Accum. Dep. Amount(TK) Disposal Amount
Action
{{++$no}} {{(date('d-m-Y', strtotime($writeOff->createdDate)))}} {{$writeOff->writeOffId}}{{$productName}} {{$prefix.$productCode}} {{$writeOff->productTotalCost}} {{$writeOff->depGenerated}} {{$writeOff->amount}} @php $productBanchName = DB::table('gnr_branch')->where('id',$writeOff->branchId)->value('name'); $writeOffBranchId = DB::table('users')->where('id',$writeOff->writeOffByUserId)->value('branchId'); $writeOffBranchName = DB::table('gnr_branch')->where('id',$writeOffBranchId)->value('name'); $depOpeningBalance = DB::table('fams_product')->where('id',$writeOff->productId)->value('depreciationOpeningBalance'); @endphp  
{{-- View Modal --}} {{-- End View Modal --}} {{-- Delete Modal --}} {{-- End Delete Modal --}} @include('dataTableScript') @endsection