@extends('layouts.pdf') @section('content')

Stock Details for {{ $selectedInventory->name }}

@php($serial = 1) @foreach($inventoryStocks as $inventoryStock) @endforeach
{{__('commons.sl')}} {{__('commons.date')}} {{__('commons.added_by')}} {{__('inventory.added_amount')}} {{__('inventory.consume_amount')}} {{__('inventory.balance')}}
{{ $serial++ }} {{ $inventoryStock->created_at }} {{ optional($inventoryStock->creator)->name }} @if ($inventoryStock->quantity > 0) {{ $inventoryStock->quantity }} {{ $selectedInventory->unit }} @else -- @endif @if ($inventoryStock->quantity < 0) {{ abs($inventoryStock->quantity) }} {{ $selectedInventory->unit }} @else -- @endif {{ $cumulativeSum = $cumulativeSum + $inventoryStock->quantity }} {{ $selectedInventory->unit }}
@endsection