@extends('layouts.app') @section('title') {{'Stock Summary'}} @endsection @section('content')
Stock Summary Back
Search By Sub Category
Start Date
End Date

 

@if (Session::has('msg'))
{{ Session::get('msg') }}
@endif {{ $product_list->withPath('?'.$link) }}
@include('layouts.head')

Stock Summary

{!! date('d-F-Y', strtotime($start_date)) !!} to {!! date('d-F-Y', strtotime($end_date)) !!}

@php $i=0; $TotalClosingOpeningTK = 0; $TotalClosingReceivedTK = 0; $TotalClosingPurReutrnTK = 0; $TotalClosingSalesTK = 0; $TotalClosingSinTK = 0; $TotalClosingSoutTK = 0; $TotalClosingReturnTK = 0; $TotalInwardDpTK =0; $TotalOutwardDpTK =0; $TotalClosingDpTK =0; $TotalClosingTpTK =0; @endphp @if(isset($product_list[0])) @foreach($product_list as $row) @php $i++; $product_received = $row->product_received; $purchase_return = $row->purchase_return; $quantity = $row->product_sales; $product_in = $row->product_in; $product_out = $row->product_out; $product_return = $row->product_return; $Today_received = $row->today_received; $Today_pur_return = $row->today_pur_return; $Today_sales = $row->today_sales; $Today_in = $row->today_in; $Today_out = $row->today_out; $Today_return = $row->today_return; $Opening = ($product_received + $product_in + $product_return) - ($purchase_return + $quantity + $product_out); $Closing = ($Opening + $Today_received + $Today_in + $Today_return) - ($Today_pur_return + $Today_sales + $Today_out); $ClosingPcs = $Closing * $row->pack_size; $ClosingOpeningTK = $Opening * $row->dp_price; $ClosingReceivedTK = $Today_received * $row->dp_price; $ClosingPurReutrnTK = $Today_pur_return * $row->dp_price; $ClosingSalesTK = $Today_sales * $row->tp_price; $ClosingSinTK = $Today_in * $row->dp_price; $ClosingSoutTK = $Today_out * $row->dp_price; $ClosingReturnTK = $Today_return * $row->dp_price; $Inward= $Today_received + $Today_in + $Today_return; $Outward= $Today_pur_return + $Today_sales + $Today_out ; $InwardDpTK = $Inward * $row->dp_price; $OutwardDpTK = $Outward * $row->dp_price; $ClosingDpTK = $ClosingPcs * $row->dp_price; $ClosingTpTK = $ClosingPcs * $row->tp_price; $TotalInwardDpTK += $InwardDpTK; $TotalOutwardDpTK += $OutwardDpTK; $TotalClosingOpeningTK += $ClosingOpeningTK; $TotalClosingReceivedTK += $ClosingReceivedTK; $TotalClosingPurReutrnTK += $ClosingPurReutrnTK; $TotalClosingSalesTK += $ClosingSalesTK; $TotalClosingSinTK += $ClosingSinTK; $TotalClosingSoutTK += $ClosingSoutTK; $TotalClosingReturnTK += $ClosingReturnTK; $TotalClosingDpTK += $ClosingDpTK; $TotalClosingTpTK += $ClosingTpTK; @endphp @endforeach @endif
S.N. ID Item Name Unit Opening Qty Inward Outward Stock Qty
{{$i}} {{$row->id}} {{$row->product_name}} {{$row->pack_type}} {{ number_format($Opening,2)}} {{ number_format($Inward,2)}} {{ number_format($Outward,2)}} {{ number_format($Closing,2)}}
Total Taka = {{ number_format($TotalClosingOpeningTK,2) }} {{ number_format($TotalInwardDpTK,2) }} {{ number_format($TotalOutwardDpTK,2) }} {{ number_format($TotalClosingDpTK,2) }}
{{ $product_list->withPath('?'.$link) }}
@endsection