Print date: {{ date('Y-m-d h:i:s A') }}

@if($settings->company_address) {!! nl2br($settings->company_address)!!}
@endif PH: {{ $settings->company_phone }}

logo }}" style="margin-top: 10px; width:150px;">

StockIn vs StockOut Report

@if($dateFrom)Date From:  {{ date_format(date_create($dateFrom),"d-M-Y") }}    @endif @if($dateTo)Date To: {{ date_format(date_create($dateTo),"d-M-Y") }}   @endif Purchased & Sold By:  {{$employee}}

@if($records) @php $sl=1; $total_stockin_qty = 0; $total_sold_qty = 0; $total_purchased_amount = 0; $total_sold_amount = 0; @endphp @foreach($records as $record) @php $sl++; $total_stockin_qty = $total_stockin_qty + $record->stockin_qty; $total_sold_qty = $total_sold_qty + $record->sold_qty; $total_purchased_amount = $total_purchased_amount + $record->stockin_total; $total_sold_amount = $total_sold_amount + $record->sold_total; @endphp @endforeach @endif
SL# Emp. Name Designation Phone StockIn Qty StockOut Qty Purchased Total({{$settings->currency_symbol}}) Sold Total({{$settings->currency_symbol}})
{{ $sl }} {{ $record->emp_name }} {{ $record->emp_designation }} {{ $record->emp_phone }} {{ $record->stockin_qty ?: 0 }} {{ $record->sold_qty ?: 0 }} {{ number_format($record->stockin_total,2) }} {{ number_format(($record->sold_total),2) }}
Total StockIn Qty: {{ $total_stockin_qty }}
Total Sold Qty: {{ $total_sold_qty }}
Total Purchased Amount({{$settings->currency_symbol}}): {{ number_format($total_purchased_amount,2) }}
Total Sold Amount({{$settings->currency_symbol}}): {{ number_format($total_sold_amount,2) }}