@extends('admin.layout.app') @section('more-head') @endsection @section('main-content')

OPERATIONS MANAGEMENT SYSTEM

WAREHOUSE STOCK BALANCES @if ($_SESSION['warehouse'] == 'beans') ({{ App\Model\factory_warehouse::find($_SESSION['beans_warehouse'])->name }}) @else ({{ App\Model\factory_warehouse::find($_SESSION['products_warehouse'])->name }}) @endif

{{--
--}}
Balance Available: @if ($_SESSION['warehouse'] == 'beans') {{ $beans_balance ? $beans_balance : 0 }} @else {{ $products_balance ? number_format($products_balance, 4) : 0 }} @endif
@if ($_SESSION['warehouse'] == 'beans') @else @endif @if ($_SESSION['warehouse'] == 'beans') @foreach ($factory_stock_beans as $factory_stock_bean) @endforeach
No. Date RemarksBean TypeProduct TypeQuantity(IN) Quantity(OUT) Balance
{{ $count++ }}. {{ Carbon\Carbon::parse($factory_stock_bean->transaction_date)->format('Y-m-d') }}. {{ str_replace('_', ' ', strtoupper($factory_stock_bean->remarks)) }} {{ ltrim(optional($factory_stock_bean->crop)->name, 'Ghana') }} {{ $factory_stock_bean->credit_bags }} {{ $factory_stock_bean->debit_bags }} {{ $factory_stock_bean->balance_bags }}
Showing {{ $factory_stock_beans->firstItem() }} to {{ $factory_stock_beans->lastItem() }} of total {{ $factory_stock_beans->total() }} entries {{ $factory_stock_beans->links() }} @else @foreach ($factory_stock_products as $factory_stock_product) {{ $count++ }}. {{ Carbon\Carbon::parse($factory_stock_product->transaction_date)->format('Y-m-d') }}. {{ str_replace('_', ' ', strtoupper($factory_stock_product->remarks)) }} {{ optional($factory_stock_product->type_of_product)->type_of_product }} {{ $factory_stock_product->credit_bags }} {{ $factory_stock_product->debit_bags }} {{ $factory_stock_product->balance_bags }} @endforeach Showing {{ $factory_stock_products->firstItem() }} to {{ $factory_stock_products->lastItem() }} of total {{ $factory_stock_products->total() }} entries {{ $factory_stock_products->links() }} @endif
@endsection @section('more-scripts') @endsection