@extends('layouts.pdf') @section('content')
{{__('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 }} |