Files
kulakpos_web/Modules/Business/resources/views/transfers/pdf.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

84 lines
4.5 KiB
PHP

@extends('layouts.business.pdf.pdf_layout')
@section('pdf_title')
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
@include('business::print.header')
<h4 style="text-align: center; margin: 0; padding: 0; font-size: 16px;" class="">{{ __('Transfer List') }}</h4>
</div>
@endsection
@section('pdf_content')
<table width="100%" cellpadding="6" cellspacing="0"
style="border-collapse: collapse; border: 1px solid gainsboro; font-size:12px;"
id="datatable">
<thead>
<tr style="background-color: #C52127; color: white;">
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Date') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Invoice No') }}</th>
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('From Branch') }}</th>
@endif
@if (moduleCheck('WarehouseAddon'))
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('From Warehouse') }}</th>
@endif
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('To Branch') }}</th>
@endif
@if (moduleCheck('WarehouseAddon'))
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('To Warehouse') }}</th>
@endif
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Qty') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Stock Values') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('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 style="background-color: {{ $loop->even ? '#F5F5F5' : '#FFFFFF' }};">
<td style="border:1px solid gainsboro; text-align:center;">
{{ $transfer->transfer_date }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ $transfer->invoice_no }}
</td>
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<td style="border:1px solid gainsboro; text-align:center;">
{{ $transfer->toBranch->name ?? '' }}
</td>
@endif
@if (moduleCheck('WarehouseAddon'))
<td style="border:1px solid gainsboro; text-align:center;">
{{ $transfer->fromWarehouse->name ?? ''}}
</td>
@endif
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<td style="border:1px solid gainsboro; text-align:center;" class="d-print-none">
{{ $transfer->fromBranch->name ?? '' }}
</td>
@endif
@if (moduleCheck('WarehouseAddon'))
<td style="border:1px solid gainsboro; text-align:center;">
{{ $transfer->toWarehouse->name ?? '' }}
</td>
@endif
<td style="border:1px solid gainsboro; text-align:center;">
{{ $totalQty }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ currency_format($totalStockValue, currency: business_currency()) }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ ucfirst($transfer->status) }}
</td>
</tr>
@endforeach
</tbody>
</table>
@endsection