Files
kulakpos_web/Modules/Business/resources/views/transfers/excel-csv.blade.php
eko54r 05fd3230b8
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 5m14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped
update marketing
2026-05-14 11:55:22 +07:00

56 lines
2.1 KiB
PHP

<table>
<thead>
<tr>
<th>{{ __('SL') }}.</th>
<th>{{ __('Date') }}</th>
<th>{{ __('Invoice No') }}</th>
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<th>{{ __('From Branch') }}</th>
@endif
@if (moduleCheck('WarehouseAddon'))
<th>{{ __('From Warehouse') }}</th>
@endif
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<th>{{ __('To Branch') }}</th>
@endif
@if (moduleCheck('WarehouseAddon'))
<th>{{ __('To Warehouse') }}</th>
@endif
<th>{{ __('Qty') }}</th>
<th>{{ __('Stock Values') }}</th>
<th>{{ __('Status') }}</th>
</tr>
</thead>
<tbody>
@foreach ($transfers as $transfer)
@php
$totalQty = $transfer->transferProducts->sum('quantity');
$totalStockValue = $transfer->transferProducts->sum(function ($product) {
return $product->quantity * $product->unit_price;
});
@endphp
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $transfer->transfer_date }}</td>
<td>{{ $transfer->invoice_no }}</td>
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<td>{{ $transfer->toBranch->name ?? '' }}</td>
@endif
@if (moduleCheck('WarehouseAddon'))
<td>{{ $transfer->fromWarehouse->name ?? ''}}</td>
@endif
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<td>{{ $transfer->fromBranch->name ?? '' }}</td>
@endif
@if (moduleCheck('WarehouseAddon'))
<td>{{ $transfer->toWarehouse->name ?? '' }}</td>
@endif
<td>{{ $totalQty }}</td>
<td>{{ currency_format($totalStockValue, currency: business_currency()) }}</td>
<td>{{ ucfirst($transfer->status) }}</td>
</tr>
@endforeach
</tbody>
</table>