@extends('printlayout') @section('content')

{{ __('sitelabel.InventoryRSWReport') }}

{{ __('sitelabel.StartDate') }}: {{ \Carbon\Carbon::parse($startDate)->format('d-F-Y') }} {{ __('sitelabel.EndDate') }}: {{ \Carbon\Carbon::parse($endDate)->format('d-F-Y') }}
@if (count($stockReport) > 0) @foreach ($stockReport as $warehouse)

{{ __('sitelabel.Warehouse') }}: {{ $warehouse['name'] }}

@php $totalDebitBundle = 0; $totalDebitQuantity = 0; $totalCreditBundle = 0; $totalCreditQuantity = 0; $totalRunningBundle = 0; $totalRunningQuantity = 0; @endphp @foreach ($warehouse['transactions'] as $transaction) @php $totalDebitBundle += $transaction['debit_bundle']; $totalDebitQuantity += $transaction['debit_quantity']; $totalCreditBundle += $transaction['credit_bundle']; $totalCreditQuantity += $transaction['credit_quantity']; $totalRunningBundle += $transaction['running_bundle']; $totalRunningQuantity += $transaction['running_quantity']; @endphp @endforeach
{{ __('sitelabel.Date') }} {{ __('sitelabel.GatePassNo') }} {{ __('sitelabel.DebitBundle') }} {{ __('sitelabel.DebitQuantity') }} {{ __('sitelabel.CreditBundle') }} {{ __('sitelabel.CreditQuantity') }} {{ __('sitelabel.CurrentBundle') }} {{ __('sitelabel.CurrentQuantity') }}
{{ \Carbon\Carbon::parse($transaction['date'])->format('d-F-Y') }} {{ $transaction['gate_pass_no'] }} {{ $transaction['debit_bundle'] }} {{ $transaction['debit_quantity'] }} {{ $transaction['credit_bundle'] }} {{ $transaction['credit_quantity'] }} {{ $transaction['running_bundle'] }} {{ $transaction['running_quantity'] }}
{{ __('sitelabel.Total') }} {{ $totalDebitBundle }} {{ $totalDebitQuantity }} {{ $totalCreditBundle }} {{ $totalCreditQuantity }} {{ $totalRunningBundle }} {{ $totalRunningQuantity }}
@endforeach @else
{{ __('sitelabel.NoRecordAvailableBetweenTheseDates') }}
@endif @include('sign-subview.signandbuttons') @endsection