update marketing
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

This commit is contained in:
2026-05-14 11:55:22 +07:00
parent f80fcc4c1b
commit 05fd3230b8
448 changed files with 17545 additions and 5128 deletions

View File

@@ -2,22 +2,22 @@
<table class="table" id="datatable">
<thead>
<tr>
<th class="table-header-content">{{ __('SL') }}.</th>
<th class="table-header-content">{{ __('Invoice Number') }}</th>
<th class="table-header-content">{{ __('Due Amount') }}</th>
<th class="table-header-content">{{ __('Action') }}</th>
<th>{{ __('SL') }}.</th>
<th>{{ __('Invoice Number') }}</th>
<th>{{ __('Due Amount') }}</th>
<th class="d-print-none">{{ __('Action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($walk_in_customers as $walk_in_customer)
<tr>
<td class="table-single-content">
<td>
{{ ($walk_in_customers->currentPage() - 1) * $walk_in_customers->perPage() + $loop->iteration }}
</td>
<td class="table-single-content">{{ $walk_in_customer->invoiceNumber }}</td>
<td class="text-danger table-single-content">
<td>{{ $walk_in_customer->invoiceNumber }}</td>
<td>
{{ currency_format($walk_in_customer->dueAmount, currency: business_currency()) }}</td>
<td class="print-d-none table-single-content">
<td class="d-print-none">
<div class="dropdown table-action">
<button type="button" data-bs-toggle="dropdown">
<i class="far fa-ellipsis-v"></i>
@@ -51,9 +51,14 @@ class="view-due-payment-btn" data-bs-toggle="modal"
{{ __('View Payment') }}
</a>
</li>
@if ($walk_in_customer->dueCollect)
@php
$due = $walk_in_customer->dueCollect()->latest()->first();
@endphp
@if ($due)
<li>
<a href="{{ route('business.collect.walk-dues.invoice', $walk_in_customer->id) }}"
<a href="{{ route('business.collect.walk-dues.invoice', $due->id) }}"
target="_blank">
<img src="{{ asset('assets/images/icons/Invoic.svg') }}" alt="">
{{ __('Invoice') }}
@@ -65,10 +70,19 @@ class="view-due-payment-btn" data-bs-toggle="modal"
</td>
</tr>
@endforeach
</tbody>
@if ($walk_in_customers->count() > 0)
<tr class="table-footer">
<td class="text-start">{{ __('Total') }}</td>
<td></td>
<td>
{{ currency_format($walk_in_customers->sum('dueAmount'), currency: business_currency()) }}
</td>
<td></td>
</tr>
@endif
</table>
</div>
<div class="mt-3">
<div class="mt-3 d-print-none">
{{ $walk_in_customers->links('vendor.pagination.bootstrap-5') }}
</div>

View File

@@ -0,0 +1,31 @@
<table class="table" id="datatable">
<thead>
<tr>
<th class="table-header-content">{{ __('SL') }}.</th>
<th class="table-header-content">{{ __('Invoice Number') }}</th>
<th class="table-header-content">{{ __('Due Amount') }}</th>
</tr>
</thead>
<tbody>
@foreach ($walk_in_customers as $walk_in_customer)
<tr>
<td class="table-single-content">
{{ $loop->iteration }}
</td>
<td class="table-single-content">{{ $walk_in_customer->invoiceNumber }}</td>
<td class="text-danger table-single-content">
{{ currency_format($walk_in_customer->dueAmount, currency: business_currency()) }}
</td>
</tr>
@endforeach
</tbody>
@if ($walk_in_customers->count() > 0)
<tr class="table-footer">
<td class="text-start">{{ __('Total') }}</td>
<td></td>
<td class="text-end">
{{ currency_format($walk_in_customers->sum('dueAmount'), currency: business_currency()) }}
</td>
</tr>
@endif
</table>

View File

@@ -9,11 +9,15 @@
<div class="container-fluid">
<div class="card">
<div class="card-bodys">
<div class="table-header p-16">
<div class="table-header p-16 d-print-none">
<h4>{{ __('Guest Due List') }}</h4>
</div>
<div class="table-top-form p-16">
<form action="{{ route('business.walk-dues.index') }}" method="GET" class="filter-form" table="#walk-dues-data">
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
@include('business::print.header')
<h4 class="mt-2">{{ __('GuestDue List') }}</h4>
</div>
<div class="table-top-form p-16 d-print-none">
<form action="{{ route('business.walk-dues.index') }}" method="GET" class="report-filter-form" table="#walk-dues-data">
<div class="table-top-left d-flex gap-3 ">
<div class="gpt-up-down-arrow position-relative">
@@ -36,6 +40,30 @@
</div>
</div>
</form>
<div class="table-top-btn-group d-print-none">
<ul>
<li>
<a class="export-btn" href="{{ route('business.walk-dues.csv') }}">
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
</a>
</li>
<li>
<a class="export-btn" href="{{ route('business.walk-dues.excel') }}">
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
</a>
</li>
<li>
<a class="export-btn" target="_blank" href="{{ route('business.walk-dues.pdf') }}">
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
</a>
</li>
<li>
<a onclick="window.print()" class="print-window">
<img src="{{ asset('assets/images/logo/printer.svg') }}" alt="">
</a>
</li>
</ul>
</div>
</div>
</div>

View File

@@ -3,7 +3,7 @@
@if ((get_business_option('business-settings')['show_thermal_invoice_logo'] ?? 0) == 1 )
<div class="invoice-logo mb-2">
<img src="{{ asset(get_business_option('business-settings')['thermal_invoice_logo'] ?? 'assets/images/default.svg') ?? '' }}" alt="Logo">
<img src="{{ Storage::url(get_business_option('business-settings')['thermal_invoice_logo'] ?? 'assets/images/default.svg') ?? '' }}" alt="Logo">
</div>
@endif
<div>
@@ -113,7 +113,7 @@
@endif
@if ((get_business_option('business-settings')['show_invoice_scanner_logo'] ?? 0) == 1)
<div class="scanner">
<img src="{{ asset(get_business_option('business-settings')['invoice_scanner_logo'] ?? 'assets/images/icons/scanner.svg') }}" alt="scanner">
<img src="{{ Storage::url(get_business_option('business-settings')['invoice_scanner_logo'] ?? 'assets/images/icons/scanner.svg') }}" alt="scanner">
</div>
@endif
<h6>{{ get_option('general')['admin_footer_text'] ?? '' }} <a href="{{ get_option('general')['admin_footer_link'] ?? '#' }}" target="_blank">{{ get_option('general')['admin_footer_link_text'] ?? '' }}</h6>

View File

@@ -9,7 +9,7 @@
</div>
<div class="col-md-6 d-flex justify-content-end align-items-end">
<div class="d-flex gap-3">
<a target="blank" class="print-btn-2 print-btn" onclick="window.print()"><img class="w-10 h-10"
<a target="_blank" class="print-btn-2 print-btn" onclick="window.print()"><img class="w-10 h-10"
src="{{ asset('assets/img/print.svg') }}">{{ __('Print') }}
</a>
</div>
@@ -20,7 +20,7 @@
<!-- Left Side: Logo and Content -->
<div class="d-flex align-items-center gap-2 logo">
@if ((get_business_option('business-settings')['show_a4_invoice_logo'] ?? 0) == 1 )
<img class="invoice-logo" src="{{ asset(get_business_option('business-settings')['a4_invoice_logo'] ?? 'assets/images/default.svg') ?? '' }}" alt="">
<img class="invoice-logo" src="{{ Storage::url(get_business_option('business-settings')['a4_invoice_logo'] ?? 'assets/images/default.svg') ?? '' }}" alt="">
@endif
</div>
@@ -212,5 +212,6 @@
</p>
</div>
@endif
<h4 class="tax-powered pt-3 pb-0">{{ get_option('general')['admin_footer_text'] ?? '' }}: {{ get_option('general')['admin_footer_link_text'] ?? '' }}</h4>
</div>
</div>

View File

@@ -0,0 +1,50 @@
@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