@usercan('transfers.delete') @endusercan @if (moduleCheck('MultiBranchAddon') && multibranch_active()) @endif @if (moduleCheck('WarehouseAddon')) @endif @if (moduleCheck('MultiBranchAddon') && multibranch_active()) @endif @if (moduleCheck('WarehouseAddon')) @endif @foreach ($transfers as $transfer) @php $totalQty = $transfer->transferProducts->sum('quantity'); $totalStockValue = $transfer->transferProducts->sum(function ($product) { return $product->quantity * $product->unit_price; }); @endphp @usercan('transfers.delete') @endusercan @if (moduleCheck('MultiBranchAddon') && multibranch_active()) @endif @if (moduleCheck('WarehouseAddon')) @endif @if (moduleCheck('MultiBranchAddon') && multibranch_active()) @endif @if (moduleCheck('WarehouseAddon')) @endif @endforeach
{{ __('SL') }}. {{ __('Date') }} {{ __('Invoice') }}{{ __('From Branch') }}{{ __('From Warehouse') }}{{ __('To Branch') }}{{ __('To Warehouse') }}{{ __('Qty') }} {{ __('Stock Values') }} {{ __('Status') }} {{ __('Action') }}
{{ ($transfers->currentPage() - 1) * $transfers->perPage() + $loop->iteration }} {{ $transfer->transfer_date }} {{ $transfer->invoice_no }}{{ $transfer->fromBranch->name ?? '' }}{{ $transfer->fromWarehouse->name ?? '' }}{{ $transfer->toBranch->name ?? '' }}{{ $transfer->toWarehouse->name ?? '' }}{{ $totalQty }} {{ currency_format($totalStockValue, currency: business_currency()) }} @if ($transfer->status === 'pending') {{ ucfirst($transfer->status) }} @elseif ($transfer->status === 'completed') {{ ucfirst($transfer->status) }} @elseif ($transfer->status === 'cancelled') {{ ucfirst($transfer->status) }} @else {{ ucfirst($transfer->status) }} @endif
{{ $transfers->links('vendor.pagination.bootstrap-5') }}