update marketing
All checks were successful
All checks were successful
This commit is contained in:
@@ -55,16 +55,16 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.customer-ledger.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.customer-ledger.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.customer-ledger.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.customer-ledger.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<a target="blank" href="{{ route('business.customer-ledger.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.customer-ledger.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
<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="">{{ __('Customer Ledger List') }}</h4>
|
||||
{{-- <p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration: 14-12-2025 to 24-12-2025') }}</p> --}}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -25,13 +25,41 @@
|
||||
<td class="text-start d-print-none">{{ $index + 1 }}</td>
|
||||
<td class="text-start">{{ formatted_date($row['date']) }}</td>
|
||||
|
||||
@php
|
||||
$invoice_no = $row['invoice_no'] ?? null;
|
||||
$invoice_route = null;
|
||||
|
||||
if ($invoice_no) {
|
||||
if ($row['platform'] === 'Sales') {
|
||||
$businessId = $row['business_id'] ?? null;
|
||||
$tax_invoice = moduleCheck('TaxInvoiceAddon') && invoice_setting($businessId) == 'standard_a4';
|
||||
|
||||
$invoice_route = $tax_invoice
|
||||
? route('business.sales.tax.invoice', $row['id'])
|
||||
: route('business.sales.invoice', $row['id']);
|
||||
} else {
|
||||
$invoice_route = route('business.collect.dues.invoice', $row['id'] ?? '');
|
||||
}
|
||||
}
|
||||
@endphp
|
||||
|
||||
<td class="text-start">
|
||||
<a target="_blank" href="{{ $row['platform'] === 'Sales' ? route('business.sales.invoice', $row['id'] ?? '') : route('business.collect.dues.invoice', $row['id'] ?? '') }}" class="stock-view-data text-primary">
|
||||
{{ $row['invoice_no'] ?? '-' }}
|
||||
</a>
|
||||
@if($invoice_route)
|
||||
<a target="_blank" href="{{ $invoice_route }}" class="stock-view-data text-primary">
|
||||
{{ $invoice_no }}
|
||||
</a>
|
||||
@else
|
||||
{{ $invoice_no ?? '-' }}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-start">{{ $row['platform'] }}</td>
|
||||
<td class="text-start">
|
||||
@if(in_array($row['platform'], ['Opening Collection', 'Opening Payment']))
|
||||
{{ $row['platform'] }}: {{ currency_format($row['amount'] ?? 0, currency: business_currency()) }}
|
||||
@else
|
||||
{{ $row['platform'] }}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-start">{{ currency_format($row['credit_amount'], currency: business_currency() ) }}</td>
|
||||
|
||||
|
||||
@@ -25,12 +25,24 @@
|
||||
<td class="text-start">{{ formatted_date($row['date']) }}</td>
|
||||
|
||||
<td class="text-start">
|
||||
<a target="_blank" href="{{ $row['platform'] === 'Sales' ? route('business.sales.invoice', $row['id'] ?? '') : route('business.collect.dues.invoice', $row['id'] ?? '') }}" class="stock-view-data text-primary">
|
||||
{{ $row['invoice_no'] ?? '-' }}
|
||||
</a>
|
||||
@if($row['invoice_no'] && $row['platform'] === 'Sales')
|
||||
<a target="_blank" href="{{ route('business.sales.invoice', $row['id'] ?? '') }}" class="stock-view-data text-primary">
|
||||
{{ $row['invoice_no'] }}
|
||||
</a>
|
||||
@elseif($row['invoice_no'])
|
||||
{{ $row['invoice_no'] }}
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="d-print-none text-start">{{ $row['platform'] }}</td>
|
||||
<td class="d-print-none text-start">
|
||||
@if(in_array($row['platform'], ['Opening Collection', 'Opening Payment']))
|
||||
{{ $row['platform'] }}: {{ currency_format($row['amount'] ?? 0) }}
|
||||
@else
|
||||
{{ $row['platform'] }}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-start">{{ currency_format($row['credit_amount']) }}</td>
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<div class="gpt-up-down-arrow position-relative d-print-none custom-date-filter">
|
||||
<select name="duration" class="form-control custom-days">
|
||||
<option value="">{{ __('All') }}</option>
|
||||
<option value="">{{ __('All Time') }}</option>
|
||||
<option value="today"> {{ __('Today') }}</option>
|
||||
<option value="yesterday"> {{ __('Yesterday') }}</option>
|
||||
<option value="last_seven_days"> {{ __('Last 7 Days') }}</option>
|
||||
@@ -64,17 +64,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.single-customer-ledger.csv', $party->id) }}">
|
||||
<a class="export-btn" href="{{ route('business.single-customer-ledger.csv', $party->id) }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.single-customer-ledger.excel', $party->id) }}">
|
||||
<a class="export-btn" href="{{ route('business.single-customer-ledger.excel', $party->id) }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.single-customer-ledger.pdf', $party->id) }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.single-customer-ledger.pdf', $party->id) }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -5,6 +5,19 @@
|
||||
@include('business::print.header')
|
||||
<p style="text-align: center; margin: 0; padding: 0; margin-bottom:5px; font-size: 16px;">
|
||||
{{ $party->name }} ({{ __('Ledger')}})
|
||||
@if ($fromDate && $toDate)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($fromDate)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($fromDate)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($fromDate)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($toDate)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</p>
|
||||
@endsection
|
||||
|
||||
@@ -47,7 +60,11 @@
|
||||
</td>
|
||||
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $row['platform'] }}
|
||||
@if(in_array($row['platform'], ['Opening Collection', 'Opening Payment']))
|
||||
{{ $row['platform'] }}: {{ currency_format($row['amount'] ?? 0, currency: business_currency()) }}
|
||||
@else
|
||||
{{ $row['platform'] }}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
|
||||
Reference in New Issue
Block a user