finishing to dev
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m41s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 42s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 22:50:44 +07:00
parent 2fabdf8fc9
commit 8307b9e66d
212 changed files with 2451 additions and 4493 deletions

View File

@@ -2,19 +2,19 @@
<table class="table" id="datatable">
<thead>
<tr>
<th class="d-print-none">{{ __('SL') }}.</th>
<th>{{ __('SL') }}.</th>
<th>{{ __('Name') }}</th>
<th>{{ __('Email') }}</th>
<th>{{ __('Phone') }}</th>
<th>{{ __('Type') }}</th>
<th class="text-end">{{ __('Due Amount') }}</th>
<th class="d-print-none">{{ __('Action') }}</th>
<th>{{ __('Action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($parties as $party)
<tr>
<td class="d-print-none">{{ ($parties->currentPage() - 1) * $parties->perPage() + $loop->iteration }}</td>
<td>{{ ($parties->currentPage() - 1) * $parties->perPage() + $loop->iteration }}</td>
<td>{{ $party->name }}</td>
<td>{{ $party->email }}</td>
<td>{{ $party->phone }}</td>
@@ -59,14 +59,10 @@ class="view-due-payment-btn" data-bs-toggle="modal"
{{ __('View Payment') }}
</a>
</li>
@php
$due = $party->dueCollect()->latest()->first();
@endphp
@if ($due)
@if ($party->dueCollect)
<li>
<a href="{{ route('business.collect.dues.invoice', $due->id) }}" target="_blank">
<a href="{{ route('business.collect.dues.invoice', $party->id) }}"
target="_blank">
<img src="{{ asset('assets/images/icons/Invoic.svg') }}" alt="">
{{ __('Invoice') }}
</a>
@@ -78,20 +74,6 @@ class="view-due-payment-btn" data-bs-toggle="modal"
</tr>
@endforeach
</tbody>
@if ($parties->count() > 0)
<tr class="table-footer">
<td class="text-start">{{ __('Total') }}</td>
<td class="d-print-none"></td>
<td></td>
<td></td>
<td></td>
<td class="text-end">
{{ currency_format($parties->sum('due'), currency: business_currency()) }}
</td>
<td class="text-end">
</td>
</tr>
@endif
</table>
</div>
<div class="mt-3">

View File

@@ -1,7 +1,7 @@
@extends('layouts.business.master')
@section('title')
{{ __(':type Due List', ['type' => request('type') === 'Retailer' ? __('Customer') : __(request('type'))]) }}
{{ __('Due List') }}
@endsection
@section('main_content')
@@ -10,17 +10,11 @@
<div class="card">
<div class="card-bodys">
<div class="table-header p-16 d-print-none">
<h4>{{ __(':type Due List', ['type' => request('type') === 'Retailer' ? __('Customer') : __(request('type'))]) }}</h4>
<div class="table-header p-16">
<h4>{{ __('Due List') }}</h4>
</div>
<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">{{ __(':type Due List', ['type' => request('type') === 'Retailer' ? __('Customer') : __(request('type'))]) }}</h4>
</div>
<div class="table-top-form p-16 d-print-none">
<form action="{{ route('business.party.dues') }}" method="GET" class="report-filter-form" table="#party-reports-data">
<div class="table-top-form p-16">
<form action="{{ route('business.party.dues') }}" method="GET" class="filter-form" table="#party-reports-data">
@if(request('type'))
<input type="hidden" name="type" value="{{ request('type') }}">
@@ -47,30 +41,6 @@
</div>
</div>
</form>
<div class="table-top-btn-group d-print-none">
<ul>
<li>
<a class="export-btn" href="{{ route('business.dues.csv') }}">
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
</a>
</li>
<li>
<a class="export-btn" href="{{ route('business.dues.excel') }}">
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
</a>
</li>
<li>
<a class="export-btn" target="_blank" href="{{ route('business.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>