@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}} {{$productCode}} {{$writeOff->productTotalCost}} {{$writeOff->depGenerated}} {{$writeOff->amount}}  
@foreach($writeOffs as $wrOff) {{-- View Modal --}} {{-- End View Modal --}} {{-- Delete Modal --}} {{-- End Delete Modal --}} @endforeach @include('dataTableScript') @endsection