Files
kulakpos_web/Modules/Business/resources/views/walk-dues/pdf.blade.php

51 lines
2.5 KiB
PHP
Raw Normal View History

2026-05-14 11:55:22 +07:00
@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="">{{ __('Guest Due 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">{{ __('SL') }}.</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Invoice Number') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Due Amount') }}</th>
</tr>
</thead>
<tbody>
@foreach ($walk_in_customers as $walk_in_customer)
<tr style="background-color: {{ $loop->even ? '#F5F5F5' : '#FFFFFF' }};">
<td style="border:1px solid gainsboro; text-align:center;">
{{ $loop->iteration }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ $walk_in_customer->invoiceNumber }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ currency_format($walk_in_customer->dueAmount, currency: business_currency()) }}
</td>
</tr>
@endforeach
</tbody>
@if ($walk_in_customers->count() > 0)
<tfoot>
<tr style="background-color:#C52127; color:#FFFFFF; font-weight:bold;">
<td style="border:1px solid gainsboro; text-align:center; color: white">
{{ __('Total') }}
</td>
<td style="border:1px solid gainsboro; text-align:center;"></td>
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
{{ currency_format($walk_in_customers->sum('dueAmount'), currency: business_currency()) }}
</td>
</tr>
</tfoot>
@endif
</table>
@endsection