update marketing
All checks were successful
All checks were successful
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<th class="d-print-none"> {{ __('Image') }} </th>
|
||||
<th> {{ __('Name') }} </th>
|
||||
<th> {{ __('Code') }} </th>
|
||||
<th> {{ __('HSN Code') }} </th>
|
||||
<th> {{ __('Product') }} </th>
|
||||
<th> {{ __('Category') }} </th>
|
||||
<th class="d-print-none"> {{ __('Unit') }} </th>
|
||||
@@ -26,6 +27,7 @@
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ $product->productCode }}</td>
|
||||
<td>{{ $product->hsn_code }}</td>
|
||||
<td>{{ $product->total_combo_products }}</td>
|
||||
<td>{{ $product->category->categoryName ?? '' }}</td>
|
||||
<td class="d-print-none">{{ $product->unit->unitName ?? '' }}</td>
|
||||
@@ -43,6 +45,7 @@
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ $combo_products->sum('total_combo_products') }}
|
||||
</td>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th> {{ __('Name') }} </th>
|
||||
<th> {{ __('Code') }} </th>
|
||||
<th> {{ __('HSN Code') }} </th>
|
||||
<th> {{ __('Product') }} </th>
|
||||
<th> {{ __('Category') }} </th>
|
||||
<th> {{ __('Unit') }} </th>
|
||||
@@ -18,6 +19,7 @@
|
||||
<td>{{ $loop->index + 1 }}</td>
|
||||
<td>{{ $product->productName }}</td>
|
||||
<td>{{ $product->productCode }}</td>
|
||||
<td>{{ $product->hsn_code }}</td>
|
||||
<td>{{ $product->total_combo_products }}</td>
|
||||
<td>{{ $product->category->categoryName ?? '' }}</td>
|
||||
<td>{{ $product->unit->unitName ?? '' }}</td>
|
||||
@@ -34,6 +36,7 @@
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ $combo_products->sum('total_combo_products') }}
|
||||
</td>
|
||||
|
||||
@@ -47,17 +47,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.combo-product-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.combo-product-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.combo-product-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.combo-product-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.combo-product-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.combo-product-reports.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="">{{ __('Combo Product Report 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
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th>{{ __('Product Code') }} </th>
|
||||
<th>{{ __('HSN Code') }}</th>
|
||||
<th>{{ __('Purchase Price') }} </th>
|
||||
<th>{{ __('Sale Price') }} </th>
|
||||
<th>{{ __('Discount') }} </th>
|
||||
@@ -16,6 +17,7 @@
|
||||
<td>{{ $discount_products->firstItem() + $loop->index }}</td>
|
||||
<td>{{ $discount_product->product?->productName }}</td>
|
||||
<td>{{ $discount_product->product?->productCode }}</td>
|
||||
<td>{{ $discount_product->product?->hsn_code }}</td>
|
||||
<td>{{ currency_format($discount_product->productPurchasePrice, currency: business_currency()) }}</td>
|
||||
<td>{{ currency_format(($discount_product->price) - ($discount_product->discount), currency: business_currency()) }}</td>
|
||||
<td>{{ currency_format(abs($discount_product->discount), currency: business_currency()) }}</td>
|
||||
@@ -27,6 +29,7 @@
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ currency_format($discount_products->sum('productPurchasePrice'), currency: business_currency()) }}
|
||||
</td>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th>{{ __('Product Code') }} </th>
|
||||
<th>{{ __('HSN Code') }}</th>
|
||||
<th>{{ __('Purchase Price') }} </th>
|
||||
<th>{{ __('Sale Price') }} </th>
|
||||
<th>{{ __('Discount') }} </th>
|
||||
@@ -15,6 +16,7 @@
|
||||
<td>{{ $loop->index + 1 }}</td>
|
||||
<td>{{ $discount_product->product?->productName }}</td>
|
||||
<td>{{ $discount_product->product?->productCode }}</td>
|
||||
<td>{{ $discount_product->product?->hsn_code }}</td>
|
||||
<td>{{ currency_format($discount_product->productPurchasePrice, currency: business_currency()) }}</td>
|
||||
<td>{{ currency_format(($discount_product->price) - ($discount_product->discount), currency: business_currency()) }}</td>
|
||||
<td>{{ currency_format(abs($discount_product->discount), currency: business_currency()) }}</td>
|
||||
@@ -26,6 +28,7 @@
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ currency_format($discount_products->sum('productPurchasePrice'), currency: business_currency()) }}
|
||||
</td>
|
||||
|
||||
@@ -47,17 +47,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.discount-product-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.discount-product-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.discount-product-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.discount-product-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.discount-product-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.discount-product-reports.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="">{{ __('Discount Product Report 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
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="d-flex align-items-center justify-content-center gap-3">
|
||||
<div class="profit-card p-3 text-white">
|
||||
<p class="stat-title">{{ __("Total Due") }}</p>
|
||||
<p class="stat-value">{{ currency_format($total_due, currency: business_currency()) }}</p>
|
||||
<p class="stat-value" id="customer_total_due">{{ currency_format($customer_total_due, currency: business_currency()) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16">
|
||||
<form action="{{ route('business.due-reports.index') }}" method="GET" class="filter-form" table="#due-reports-data">
|
||||
<form action="{{ route('business.due-reports.index') }}" method="GET" class="report-filter-form" table="#due-reports-data">
|
||||
|
||||
<div class="table-top-left d-flex gap-3 ">
|
||||
<div class="gpt-up-down-arrow position-relative d-print-none">
|
||||
@@ -65,17 +65,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.due-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.due-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.due-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.due-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.due-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.due-reports.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 Due Report 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
|
||||
|
||||
@@ -16,7 +15,7 @@
|
||||
<tr style="background-color: #C52127; color: white;">
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Name') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Phone') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Type ') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Type') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Credit Limit') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Due Amount') }}</th>
|
||||
</tr>
|
||||
@@ -34,7 +33,7 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;">{{ __('Customer') }}</td>
|
||||
@else
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $party->phone }}
|
||||
{{ $party->type }}
|
||||
</td>
|
||||
@endif
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
@if (auth()->user()->accessToMultiBranch())
|
||||
<td class="text-start">{{ $expense_report->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
<td class="text-start">{{ $expense_report->category->categoryName }}</td>
|
||||
<td class="text-start">{{ $expense_report->category->categoryName ?? '' }}</td>
|
||||
<td class="text-start">{{ $expense_report->expanseFor }}</td>
|
||||
<td class="text-start d-print-none">
|
||||
@if ($expense_report->transactions && $expense_report->transactions->isNotEmpty())
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
@if (auth()->user()->accessToMultiBranch())
|
||||
<td class="text-start">{{ $expense_report->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
<td class="text-start">{{ $expense_report->category->categoryName }}</td>
|
||||
<td class="text-start">{{ $expense_report->category->categoryName ?? ''}}</td>
|
||||
<td class="text-start">{{ $expense_report->expanseFor }}</td>
|
||||
<td class="text-start">
|
||||
@if ($expense_report->transactions && $expense_report->transactions->isNotEmpty())
|
||||
|
||||
@@ -108,17 +108,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.expense-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.expense-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.expense-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.expense-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.expense-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.expense-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Expense Report 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -81,7 +93,7 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></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($expense_report->amount, currency: business_currency()) }}
|
||||
{{ currency_format($expense_reports->sum('amount'), currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<th class="d-print-none">{{ __('Image') }} </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th class="d-print-none">{{ __('Code') }} </th>
|
||||
<th class="d-print-none">{{ __('HSN Code') }}</th>
|
||||
<th class="d-print-none">{{ __('Brand') }} </th>
|
||||
<th>{{ __('Category') }} </th>
|
||||
<th class="d-print-none">{{ __('Unit') }} </th>
|
||||
@@ -29,7 +30,6 @@
|
||||
<th>{{ __('Sale price') }}</th>
|
||||
<th>{{ __('Stock') }}</th>
|
||||
<th>{{ __('Expired Date') }}</th>
|
||||
<th class="d-print-none">{{ __('Action') }} </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -57,6 +57,7 @@
|
||||
|
||||
<td>{{ $product->productName }}</td>
|
||||
<td class="d-print-none">{{ $product->productCode }}</td>
|
||||
<td class="d-print-none">{{ $product->hsn_code }}</td>
|
||||
<td class="d-print-none">{{ $product->brand->brandName ?? '' }}</td>
|
||||
<td>{{ $product->category->categoryName ?? '' }}</td>
|
||||
<td class="d-print-none">{{ $product->unit->unitName ?? '' }}</td>
|
||||
@@ -74,36 +75,6 @@ class="{{ $product->stocks_sum_product_stock <= $product->alert_qty ? 'text-dang
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="d-print-none">
|
||||
<div class="dropdown table-action">
|
||||
<button type="button" data-bs-toggle="dropdown">
|
||||
<i class="far fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="#expire-product-report-view" class="product-view" data-bs-toggle="modal"
|
||||
data-name="{{ $product->productName }}"
|
||||
data-image="{{ asset($product->productPicture ?? 'assets/images/logo/upload2.jpg') }}"
|
||||
data-code="{{ $product->productCode }}"
|
||||
data-brand="{{ $product->brand->brandName ?? '' }}"
|
||||
data-category="{{ $product->category->categoryName ?? '' }}"
|
||||
data-unit="{{ $product->unit->unitName ?? '' }}" @usercan('expired-product-reports.price')
|
||||
data-purchase-price="{{ currency_format($latestPurchasePrice, currency: business_currency()) }}"
|
||||
@endusercan
|
||||
data-sale-price="{{ currency_format($latestSalePrice, currency: business_currency()) }}"
|
||||
data-wholesale-price="{{ currency_format($latestWholeSalePrice, currency: business_currency()) }}"
|
||||
data-dealer-price="{{ currency_format($latestDealerPrice, currency: business_currency()) }}"
|
||||
data-stock="{{ $product->stocks_sum_product_stock }}"
|
||||
data-product-expire-date="{{ formatted_date($product->stocks->first()?->expire_date) }}"
|
||||
data-manufacturer="{{ $product->productManufacturer }}">
|
||||
<i class="fal fa-eye"></i>
|
||||
{{ __('View') }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
@@ -113,6 +84,7 @@ class="{{ $product->stocks_sum_product_stock <= $product->alert_qty ? 'text-dang
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="d-print-none"></td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th class="d-print-none">{{ __('Code') }} </th>
|
||||
<th class="d-print-none">{{ __('HSN Code') }}</th>
|
||||
<th class="d-print-none">{{ __('Brand') }} </th>
|
||||
<th>{{ __('Category') }} </th>
|
||||
<th class="d-print-none">{{ __('Unit') }} </th>
|
||||
@@ -60,6 +61,7 @@ class="{{ $product->stocks_sum_product_stock <= $product->alert_qty ? 'text-dang
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td class="d-print-none"></td>
|
||||
|
||||
@@ -78,17 +78,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.expired.product.reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.expired.product.reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.expired.product.reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.expired.product.reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.expired.product.reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.expired.product.reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
@@ -111,7 +111,3 @@
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('modal')
|
||||
@include('business::reports.expired-products.view')
|
||||
@endpush
|
||||
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Expired Product Report 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
@if (auth()->user()->accessToMultiBranch())
|
||||
<td class="text-start">{{ $income_report->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
<td class="text-start">{{ $income_report->category->categoryName }}</td>
|
||||
<td class="text-start">{{ $income_report->category->categoryName ?? '' }}</td>
|
||||
<td class="text-start">{{ $income_report->incomeFor }}</td>
|
||||
<td class="text-start d-print-none">
|
||||
@if ($income_report->transactions && $income_report->transactions->isNotEmpty())
|
||||
|
||||
@@ -103,17 +103,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.income-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.income-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.income-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.income-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.income-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.income-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Income Report 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -81,7 +93,7 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></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($income_report->amount, currency: business_currency()) }}
|
||||
{{ currency_format($income_reports->sum('amount'), currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th>{{ __('Product Code') }} </th>
|
||||
<th>{{ __('HSN Code') }} </th>
|
||||
<th>{{ __('Profit') }} </th>
|
||||
<th>{{ __('Loss') }} </th>
|
||||
</tr>
|
||||
@@ -15,6 +16,7 @@
|
||||
<td>{{ $product_lossProfits->firstItem() + $loop->index }}</td>
|
||||
<td>{{ $loss_profit->product?->productName }}</td>
|
||||
<td>{{ $loss_profit->product?->productCode }}</td>
|
||||
<td>{{ $loss_profit->product?->hsn_code }}</td>
|
||||
<td class="{{ $loss_profit->profit ? 'text-success' : '' }}">{{ currency_format($loss_profit->profit, currency: business_currency()) }}</td>
|
||||
<td class="{{ $loss_profit->loss ? 'text-danger' : '' }}">{{ currency_format(abs($loss_profit->loss), currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
@@ -25,6 +27,7 @@
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-success">
|
||||
{{ currency_format($product_lossProfits->sum('profit'), currency: business_currency()) }}
|
||||
</td>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th>{{ __('Product Code') }} </th>
|
||||
<th>{{ __('HSN Code') }} </th>
|
||||
<th>{{ __('Profit') }} </th>
|
||||
<th>{{ __('Loss') }} </th>
|
||||
</tr>
|
||||
@@ -14,6 +15,7 @@
|
||||
<td>{{ $loop->index + 1 }}</td>
|
||||
<td>{{ $loss_profit->product?->productName }}</td>
|
||||
<td>{{ $loss_profit->product?->productCode }}</td>
|
||||
<td>{{ $loss_profit->product?->hsn_code }}</td>
|
||||
<td class="text-success">{{ currency_format($loss_profit->profit, currency: business_currency()) }}</td>
|
||||
<td class="text-danger">{{ currency_format(abs($loss_profit->loss), currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
|
||||
@@ -24,13 +24,13 @@
|
||||
<div class="col-lg-2 col-md-12 ">
|
||||
<div class="sales-card p-3 m-2 text-white">
|
||||
<p class="stat-title">{{ __('Loss') }}</p>
|
||||
<p class="stat-value">{{ currency_format($loss, currency: business_currency()) }}</p>
|
||||
<p class="stat-value" id="loss">{{ currency_format($loss, currency: business_currency()) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-md-6 ">
|
||||
<div class="profit-card p-3 m-2 text-white">
|
||||
<p class="stat-title">{{ __('Profit') }}</p>
|
||||
<p class="stat-value">{{ currency_format($profit, currency: business_currency()) }}</p>
|
||||
<p class="stat-value" id="profit">{{ currency_format($profit, currency: business_currency()) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -66,17 +66,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.product-loss-profit-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.product-loss-profit-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.product-loss-profit-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.product-loss-profit-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.product-loss-profit-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.product-loss-profit-reports.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="">{{ __('Product Loss Profit Report 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
|
||||
|
||||
|
||||
@@ -78,17 +78,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.product-purchase-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.product-purchase-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.product-purchase-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.product-purchase-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.product-purchase-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.product-purchase-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Product Wise Purchase 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -27,18 +27,15 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($product_sales as $product_sale)
|
||||
@php $sl = $product_sales->firstItem() + $loop->index; @endphp
|
||||
@foreach ($product_sale->details as $detail)
|
||||
<tr>
|
||||
<td>{{ $sl }}</td>
|
||||
<td>{{ formatted_date($product_sale->saleDate) }}</td>
|
||||
<td>{{ $product_sale->invoiceNumber }}</td>
|
||||
<td>{{ $product_sale->party?->name }}</td>
|
||||
<td>{{ $detail->product?->productName }}</td>
|
||||
<td>{{ $detail->quantities }}</td>
|
||||
<td>{{ currency_format(($detail->quantities) * (($detail->price)), currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr>
|
||||
<td>{{ $product_sales->firstItem() + $loop->index }}</td>
|
||||
<td>{{ formatted_date($product_sale->sale?->saleDate) }}</td>
|
||||
<td>{{ $product_sale->sale?->invoiceNumber }}</td>
|
||||
<td>{{ $product_sale->sale?->party?->name }}</td>
|
||||
<td>{{ $product_sale->product?->productName }}</td>
|
||||
<td>{{ $product_sale->quantities }}</td>
|
||||
<td>{{ currency_format(($product_sale->quantities) * ($product_sale->productPurchasePrice), currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@if ($product_sales->count() > 0)
|
||||
@@ -49,11 +46,11 @@
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ $product_sales->sum(fn($sale) => $sale->details->sum('quantities')) }}
|
||||
{{ $product_sales->sum('quantities') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ currency_format(
|
||||
$product_sales->sum(fn($sale) => $sale->details->sum(fn($detail) => $detail->quantities * $detail->price)),
|
||||
$product_sales->sum(fn($item) => $item->quantities * $item->productPurchasePrice),
|
||||
currency: business_currency()
|
||||
) }}
|
||||
</td>
|
||||
|
||||
@@ -1,28 +1,44 @@
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Date') }} </th>
|
||||
<th>{{ __('Invoice') }} </th>
|
||||
<th>{{ __('Customer') }} </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th>{{ __('Sale QTY') }} </th>
|
||||
<th>{{ __('Total Amount') }} </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($product_sales as $product_sale)
|
||||
@foreach ($product_sale->details as $detail)
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Date') }} </th>
|
||||
<th>{{ __('Invoice') }} </th>
|
||||
<th>{{ __('Customer') }} </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th>{{ __('Sale QTY') }} </th>
|
||||
<th>{{ __('Total Amount') }} </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($product_sales as $product_sale)
|
||||
<tr>
|
||||
<td>{{ $loop->parent->iteration }}</td>
|
||||
<td>{{ formatted_date($product_sale->saleDate) }}</td>
|
||||
<td>{{ $product_sale->invoiceNumber }}</td>
|
||||
<td>{{ $product_sale->party?->name }}</td>
|
||||
<td>{{ $detail->product?->productName }}</td>
|
||||
<td>{{ $detail->quantities }}</td>
|
||||
<td>{{ currency_format(($detail->quantities) * (($detail->price)), currency: business_currency()) }}</td>
|
||||
<td>{{ $loop->index + 1 }}</td>
|
||||
<td>{{ formatted_date($product_sale->sale?->saleDate) }}</td>
|
||||
<td>{{ $product_sale->sale?->invoiceNumber }}</td>
|
||||
<td>{{ $product_sale->sale?->party?->name }}</td>
|
||||
<td>{{ $product_sale->product?->productName }}</td>
|
||||
<td>{{ $product_sale->quantities }}</td>
|
||||
<td>{{ currency_format(($product_sale->quantities) * ($product_sale->productPurchasePrice), currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
@if ($product_sales->count() > 0)
|
||||
<tr class="table-footer">
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ $product_sales->sum('quantities') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ currency_format(
|
||||
$product_sales->sum(fn($item) => $item->quantities * $item->productPurchasePrice),
|
||||
currency: business_currency()
|
||||
) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
|
||||
@@ -78,17 +78,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.product-sale-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.product-sale-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.product-sale-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.product-sale-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.product-sale-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.product-sale-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Product Wise Sale 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -24,28 +36,26 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($product_sales as $product_sale)
|
||||
@foreach ($product_sale->details as $detail)
|
||||
<tr style="background-color: {{ $loop->even ? '#F5F5F5' : '#FFFFFF' }};">
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ formatted_date($product_sale->saleDate) }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $product_sale->invoiceNumber }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $product_sale->party?->name }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $detail->product?->productName }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $detail->quantities }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ currency_format(($detail->quantities) * (($detail->price)), currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
<tr style="background-color: {{ $loop->even ? '#F5F5F5' : '#FFFFFF' }};">
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ formatted_date($product_sale->sale?->saleDate) }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $product_sale->sale?->invoiceNumber }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $product_sale->sale?->party?->name }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $product_sale->product?->productName }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $product_sale->quantities }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ currency_format(($product_sale->quantities) * ($product_sale->productPurchasePrice), currency: business_currency()) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@if ($product_sales->count() > 0)
|
||||
@@ -58,11 +68,11 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></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;">
|
||||
{{ $product_sales->sum(fn($sale) => $sale->details->sum('quantities')) }}
|
||||
{{ $product_sales->sum('quantities') }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
|
||||
{{ currency_format(
|
||||
$product_sales->sum(fn($sale) => $sale->details->sum(fn($detail) => $detail->quantities * $detail->price)),
|
||||
$product_sales->sum(fn($item) => $item->quantities * $item->productPurchasePrice),
|
||||
currency: business_currency()
|
||||
) }}
|
||||
</td>
|
||||
|
||||
@@ -32,17 +32,21 @@
|
||||
@foreach ($purchases as $purchase)
|
||||
@php
|
||||
$total_return_amount = $purchase->purchaseReturns->sum('total_return_amount');
|
||||
$tax_invoice = moduleCheck('TaxInvoiceAddon') && invoice_setting($purchase->business_id) == 'standard_a4';
|
||||
$invoice_route = $tax_invoice ? route('business.purchases.tax.invoice', $purchase->id) : route('business.purchases.invoice', $purchase->id);
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ ($purchases->currentPage() - 1) * $purchases->perPage() + $loop->iteration }}</td>
|
||||
@if (auth()->user()->accessToMultiBranch())
|
||||
<td>{{ $purchase->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
|
||||
<td>
|
||||
<a href="{{ route('business.sales.invoice', $purchase->id) }}" target="_blank" class="text-primary">
|
||||
<a href="{{ $invoice_route }}" target="_blank" class="text-primary">
|
||||
{{ $purchase->invoiceNumber }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
<td>{{ formatted_date($purchase->purchaseDate) }}</td>
|
||||
<td>{{ $purchase->party->name ?? '' }}</td>
|
||||
<td>{{ currency_format($purchase->totalAmount, currency: business_currency()) }}</td>
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Purchase Return Report 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -100,17 +100,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.purchase-return-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.purchase-return-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.purchase-return-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.purchase-return-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.purchase-return-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.purchase-return-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Purchase Report 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -102,17 +102,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.purchase-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.purchase-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.purchase-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.purchase-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.purchase-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.purchase-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
@foreach ($sales as $sale)
|
||||
@php
|
||||
$total_return_amount = $sale->saleReturns->sum('total_return_amount');
|
||||
$tax_invoice = moduleCheck('TaxInvoiceAddon') && invoice_setting($sale->business_id) == 'standard_a4';
|
||||
$invoice_route = $tax_invoice ? route('business.sales.tax.invoice', $sale->id) : route('business.sales.invoice', $sale->id);
|
||||
@endphp
|
||||
|
||||
<tr>
|
||||
@@ -40,7 +42,7 @@
|
||||
<td>{{ $sale->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
<td>
|
||||
<a href="{{ route('business.sales.invoice', $sale->id) }}" target="_blank" class="text-primary">
|
||||
<a href="{{ $invoice_route }}" target="_blank" class="text-primary">
|
||||
{{ $sale->invoiceNumber }}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Sale Return Report 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -104,17 +104,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.sale-return-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.sale-return-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.sale-return-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.sale-return-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.sale-return-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.sale-return-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -3,8 +3,20 @@
|
||||
@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="">{{ __('Sales Report 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> --}}
|
||||
<h4 style="text-align: center; margin: 0; padding: 0; font-size: 16px;" class="">{{ __('Sale Report List') }}</h4>
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -104,17 +104,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.sales.reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.sales.reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.sales.reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.sales.reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.sales.reports.pdf', ['custom_days' => request('custom_days')]) }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.sales.reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -34,7 +34,13 @@
|
||||
<td class="text-start">{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-start">
|
||||
{{
|
||||
$stock_reports->sum(function ($stock_report) {
|
||||
return $stock_report->stocks->sum('productStock');
|
||||
})
|
||||
}}
|
||||
</td>
|
||||
<td></td>
|
||||
<td class="text-end">
|
||||
{{ currency_format(
|
||||
|
||||
@@ -33,7 +33,13 @@
|
||||
<td class="text-start">{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{
|
||||
$stock_reports->sum(function ($stock_report) {
|
||||
return $stock_report->stocks->sum('productStock');
|
||||
})
|
||||
}}
|
||||
</td>
|
||||
<td></td>
|
||||
<td class="text-end">
|
||||
{{ currency_format(
|
||||
|
||||
@@ -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="">{{ __('Stock Report 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
|
||||
|
||||
@@ -56,7 +55,13 @@
|
||||
{{ __('Total') }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></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;">
|
||||
{{
|
||||
$stock_reports->sum(function ($stock_report) {
|
||||
return $stock_report->stocks->sum('productStock');
|
||||
})
|
||||
}}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;" class="d-print-none"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
|
||||
{{ currency_format(
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
<div class="d-flex align-items-center justify-content-center gap-3">
|
||||
<div class="profit-card p-3 text-white">
|
||||
<p class="stat-title">{{ __('Total Quantity') }}</p>
|
||||
<p class="stat-value">{{ $total_qty }}</p>
|
||||
<p class="stat-value" id="total_qty">{{ $total_qty }}</p>
|
||||
</div>
|
||||
|
||||
<div class="loss-card p-3 text-white">
|
||||
<p class="stat-title">{{ __('Total Stock Value') }}</p>
|
||||
<p class="stat-value">{{ currency_format($total_stock_value) }}</p>
|
||||
<p class="stat-value" id="total_stock_value">{{ currency_format($total_stock_value) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -32,7 +32,7 @@
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16">
|
||||
<form action="{{ route('business.stock-reports.index') }}" method="GET" class="filter-form" table="#stock-reports-data">
|
||||
<form action="{{ route('business.stock-reports.index') }}" method="GET" class="report-filter-form" table="#stock-reports-data">
|
||||
|
||||
<div class="table-top-left d-flex gap-3 ">
|
||||
<div class="gpt-up-down-arrow position-relative d-print-none">
|
||||
@@ -59,17 +59,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.stock-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.stock-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.stock-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.stock-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.stock-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.stock-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<td>{{ $subscriber->gateway->name ?? 'N/A' }}</td>
|
||||
<td>
|
||||
<div class="badge bg-{{ $subscriber->payment_status == 'unpaid' ? 'danger' : 'primary' }}">
|
||||
{{ ucfirst($subscriber->payment_status) }}
|
||||
{{ $subscriber->payment_status == 'unpaid' ? __('Unpaid') : __('Paid') }}
|
||||
</div>
|
||||
</td>
|
||||
<td class="d-print-none">
|
||||
|
||||
@@ -28,7 +28,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>
|
||||
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Subscription Report 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -84,17 +84,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.subscription-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.subscription-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.subscription-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.subscription-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.subscription-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.subscription-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="d-flex align-items-center justify-content-center gap-3">
|
||||
<div class="profit-card p-3 text-white">
|
||||
<p class="stat-title">{{ __("Total Due") }}</p>
|
||||
<p class="stat-value">{{ currency_format($total_due, currency: business_currency()) }}</p>
|
||||
<p class="stat-value" id="supplier_total_due">{{ currency_format($supplier_total_due, currency: business_currency()) }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
|
||||
<div class="table-top-form p-16">
|
||||
<form action="{{ route('business.supplier-due-reports.index') }}" method="GET" class="filter-form" table="#supplier-due-reports-data">
|
||||
<form action="{{ route('business.supplier-due-reports.index') }}" method="GET" class="report-filter-form" table="#supplier-due-reports-data">
|
||||
|
||||
<div class="table-top-left d-flex gap-3 ">
|
||||
<div class="gpt-up-down-arrow position-relative d-print-none">
|
||||
@@ -56,17 +56,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.supplier-due-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.supplier-due-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.supplier-due-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.supplier-due-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.supplier-due-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.supplier-due-reports.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="">{{ __('Supplier Due Report 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
|
||||
|
||||
@@ -16,7 +15,7 @@
|
||||
<tr style="background-color: #C52127; color: white;">
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Name') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Phone') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Type ') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Type') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Credit Limit') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Due Amount') }}</th>
|
||||
</tr>
|
||||
@@ -34,7 +33,7 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;">{{ __('Customer') }}</td>
|
||||
@else
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $party->phone }}
|
||||
{{ $party->type }}
|
||||
</td>
|
||||
@endif
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th>{{ __('Product Code') }} </th>
|
||||
<th>{{ __('HSN Code') }} </th>
|
||||
<th>{{ __('Total Sales') }} </th>
|
||||
<th class="text-end">{{ __('Total Amount') }} </th>
|
||||
</tr>
|
||||
@@ -15,6 +16,7 @@
|
||||
<td>{{ $loop->index + 1 }}</td>
|
||||
<td>{{ $top_product->product?->productName }}</td>
|
||||
<td>{{ $top_product->product?->productCode }}</td>
|
||||
<td>{{ $top_product->product?->hsn_code }}</td>
|
||||
<td>{{ $top_product->total_sold_qty ?? 0 }}</td>
|
||||
<td class="text-end">{{ currency_format($top_product->total_sale_amount ?? 0, currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
@@ -25,6 +27,7 @@
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ $top_products->sum(fn($product) => $product->total_sold_qty ?? 0) }}
|
||||
</td>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<th>{{ __('SL') }}. </th>
|
||||
<th>{{ __('Product Name') }} </th>
|
||||
<th>{{ __('Product Code') }} </th>
|
||||
<th>{{ __('HSN Code') }} </th>
|
||||
<th>{{ __('Total Sales') }} </th>
|
||||
<th>{{ __('Total Amount') }} </th>
|
||||
</tr>
|
||||
@@ -14,6 +15,7 @@
|
||||
<td>{{ $loop->index + 1 }}</td>
|
||||
<td>{{ $top_product->product?->productName }}</td>
|
||||
<td>{{ $top_product->product?->productCode }}</td>
|
||||
<td>{{ $top_product->product?->hsn_code }}</td>
|
||||
<td>{{ $top_product->total_sold_qty ?? 0 }}</td>
|
||||
<td>{{ currency_format($top_product->total_sale_amount ?? 0, currency: business_currency()) }}</td>
|
||||
</tr>
|
||||
@@ -24,6 +26,7 @@
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{{ $top_products->sum(fn($product) => $product->total_sold_qty ?? 0) }}
|
||||
</td>
|
||||
|
||||
@@ -39,17 +39,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.top-product-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.top-product-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.top-product-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.top-product-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.top-product-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.top-product-reports.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="">{{ __('Top 5 Product Report 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
|
||||
|
||||
|
||||
@@ -34,14 +34,14 @@
|
||||
|
||||
@if (!$transaction->party_id)
|
||||
<td class="text-start">
|
||||
<a href="{{ route('business.collect.walk-dues.invoice', $transaction->id ?? '') }}"
|
||||
<a href="{{ route('business.collect.walk-dues.invoice', $transaction->id) }}"
|
||||
class="text-primary" target="_blank">
|
||||
{{ $transaction->invoiceNumber }}
|
||||
</a>
|
||||
</td>
|
||||
@else
|
||||
<td class="text-start">
|
||||
<a href="{{ route('business.collect.dues.invoice', $transaction->party_id) }}"
|
||||
<a href="{{ route('business.collect.dues.invoice', $transaction->id) }}"
|
||||
class="text-primary" target="_blank">
|
||||
{{ $transaction->invoiceNumber }}
|
||||
</a>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
@endforeach
|
||||
</tbody>
|
||||
@if ($transactions->count() > 0)
|
||||
<tr>
|
||||
<td>{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
@@ -4,7 +4,19 @@
|
||||
<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="">{{ __('Due Transaction Report 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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@@ -108,17 +108,17 @@
|
||||
<div class="table-top-btn-group d-print-none">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ route('business.transaction-history-reports.csv') }}">
|
||||
<a class="export-btn" href="{{ route('business.transaction-history-reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('business.transaction-history-reports.excel') }}">
|
||||
<a class="export-btn" href="{{ route('business.transaction-history-reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" href="{{ route('business.transaction-history-reports.pdf') }}">
|
||||
<a class="export-btn" target="_blank" href="{{ route('business.transaction-history-reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('Date') }}</th>
|
||||
<th>{{ __('Invoice') }}</th>
|
||||
@if (Request::get('type') == 'sales')
|
||||
<th>{{ __('Customer') }}</th>
|
||||
@else
|
||||
<th>{{ __('Supplier') }}</th>
|
||||
@endif
|
||||
<th>{{ __('Tax Number') }}</th>
|
||||
<th>{{ __('Total Amount') }}</th>
|
||||
<th>{{ __('Payment Method') }}</th>
|
||||
<th>{{ __('Discount') }}</th>
|
||||
@foreach ($vats as $vat)
|
||||
<th>{{ $vat->name . '@' . $vat->rate . '%' }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- Show sales data if sales tab is active -->
|
||||
@if (Request::get('type') == 'sales')
|
||||
@foreach ($sales as $sale)
|
||||
<tr>
|
||||
<td>{{ formatted_date($sale->created_at) }}</td>
|
||||
<td>{{ $sale->invoiceNumber }}</td>
|
||||
<td>{{ $sale->party->name ?? '' }}</td>
|
||||
<td>{{ $sale->party->tax_no ?? '' }}</td>
|
||||
<td>{{ currency_format($sale->totalAmount, currency: business_currency()) }}</td>
|
||||
<td>
|
||||
@if ($sale->transactions && $sale->transactions->isNotEmpty())
|
||||
{{ $sale->transactions->map(function($transaction) {
|
||||
if ($transaction->transaction_type === 'bank_payment' && !empty($transaction->paymentType?->name)) {
|
||||
return $transaction->paymentType->name;
|
||||
}
|
||||
return $transaction->transaction_type ? ucfirst(explode('_', $transaction->transaction_type)[0]) : '';
|
||||
})->unique()->implode(', ') }}
|
||||
@elseif ($sale->payment_type_id)
|
||||
{{ $sale->payment_type?->name }}
|
||||
@else
|
||||
{{ $sale->paymentType }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ currency_format($sale->discountAmount, currency: business_currency()) }}</td>
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
// Product VAT
|
||||
$productVat = $saleVatRowMap[$sale->id][$vat->id] ?? 0;
|
||||
|
||||
// Returned VAT
|
||||
$returnVat = $saleReturnVatRowMap[$sale->id][$vat->id] ?? 0;
|
||||
|
||||
// Invoice VAT
|
||||
$invoiceVat = ($sale->vat_id == $vat->id) ? $sale->vat_amount : 0;
|
||||
|
||||
// Final VAT
|
||||
$totalVat = $productVat + $invoiceVat - $returnVat;
|
||||
@endphp
|
||||
<td>{{ currency_format($totalVat, currency: business_currency()) }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
@if ($sales->count() > 0)
|
||||
<tr class="table-footer">
|
||||
<td class="text-start fw-bold">{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-center fw-bold">
|
||||
{{ currency_format($sales->sum('totalAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td class="text-center fw-bold">
|
||||
{{ currency_format($sales->sum('discountAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
$grandVatTotal = (($salesVatTotals[$vat->id] ?? 0)
|
||||
- ($salesReturnVatTotals[$vat->id] ?? 0))
|
||||
+ $sales->where('vat_id', $vat->id)->sum('vat_amount');
|
||||
@endphp
|
||||
<td class="text-center fw-bold">
|
||||
{{ currency_format($grandVatTotal, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<!-- Show purchase data if purchase tab is active -->
|
||||
@if (Request::get('type') == 'purchases')
|
||||
@foreach ($purchases as $purchase)
|
||||
<tr>
|
||||
<td>{{ formatted_date($purchase->created_at) }}</td>
|
||||
<td>{{ $purchase->invoiceNumber }}</td>
|
||||
<td>{{ $purchase->party->name ?? '' }}</td>
|
||||
<td>{{ $purchase->party->tax_no ?? '' }}</td>
|
||||
<td>{{ currency_format($purchase->totalAmount, currency: business_currency()) }}</td>
|
||||
<td>
|
||||
@if ($purchase->transactions && $purchase->transactions->isNotEmpty())
|
||||
{{ $purchase->transactions->map(function($transaction) {
|
||||
if ($transaction->transaction_type === 'bank_payment' && !empty($transaction->paymentType?->name)) {
|
||||
return $transaction->paymentType->name;
|
||||
}
|
||||
return $transaction->transaction_type ? ucfirst(explode('_', $transaction->transaction_type)[0]) : '';
|
||||
})->unique()->implode(', ') }}
|
||||
@elseif ($purchase->payment_type_id)
|
||||
{{ $purchase->payment_type?->name }}
|
||||
@else
|
||||
{{ $purchase->paymentType }}
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ currency_format($purchase->discountAmount, currency: business_currency()) }}</td>
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
// Product level VAT
|
||||
$productVat = $purchaseVatRowMap[$purchase->id][$vat->id] ?? 0;
|
||||
|
||||
// Returned VAT
|
||||
$returnVat = $purchaseReturnVatRowMap[$purchase->id][$vat->id] ?? 0;
|
||||
|
||||
// Invoice level VAT
|
||||
$invoiceVat = ($purchase->vat_id == $vat->id) ? $purchase->vat_amount : 0;
|
||||
|
||||
// Final VAT
|
||||
$totalVat = $productVat + $invoiceVat - $returnVat;
|
||||
@endphp
|
||||
<td>{{ currency_format($totalVat, currency: business_currency()) }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
@if ($purchases->count() > 0)
|
||||
<tr class="table-footer">
|
||||
<td class="text-start fw-bold">{{ __('Total') }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-center fw-bold">{{ currency_format($purchases->sum('totalAmount'), currency: business_currency()) }}</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td class="text-center fw-bold">{{ currency_format($purchases->sum('discountAmount'), currency: business_currency()) }}</td>
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
$grandVatTotal = (($purchasesVatTotals[$vat->id] ?? 0)
|
||||
- ($purchaseReturnVatTotals[$vat->id] ?? 0))
|
||||
+ $purchases->where('vat_id', $vat->id)->sum('vat_amount');
|
||||
@endphp
|
||||
<td class="text-center fw-bold">
|
||||
{{ currency_format($grandVatTotal, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -22,6 +22,24 @@
|
||||
<div class="d-flex align-items-center justify-content-between table-top-form">
|
||||
<form action="{{ route('business.vat-reports.index') }}" method="GET" class="vat-report-filter-form">
|
||||
<div class="table-top-left d-flex gap-3 d-print-none flex-wrap p-3">
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="per_page" class="form-control">
|
||||
<option @selected(request('per_page') == 20) value="20">{{ __('Show 20') }}</option>
|
||||
<option @selected(request('per_page') == 50) value="50">{{ __('Show 50') }}</option>
|
||||
<option @selected(request('per_page') == 100) value="100">{{ __('Show 100') }}</option>
|
||||
<option @selected(request('per_page') == 500) value="500">{{ __('Show 500') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
<div class="table-search position-relative">
|
||||
<input type="text" name="search" class="form-control" placeholder="{{ __('Search...') }}" value="{{ request('search') }}">
|
||||
<span class="position-absolute">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M14.582 14.582L18.332 18.332" stroke="#4D4D4D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M16.668 9.16797C16.668 5.02584 13.3101 1.66797 9.16797 1.66797C5.02584 1.66797 1.66797 5.02584 1.66797 9.16797C1.66797 13.3101 5.02584 16.668 9.16797 16.668C13.3101 16.668 16.668 13.3101 16.668 9.16797Z" stroke="#4D4D4D" stroke-width="1.25" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
<div class="custom-from-to align-items-center date-filters d-none">
|
||||
<label class="header-label">{{ __('From Date') }}</label>
|
||||
<input type="date" name="from_date" value="{{ request('from_date') ?? now()->format('Y-m-d') }}" class="form-control">
|
||||
@@ -56,22 +74,18 @@
|
||||
</form>
|
||||
<div class="table-top-btn-group d-print-none p-3">
|
||||
<ul>
|
||||
<input type="hidden" id="csvBaseUrl" value="{{ route('business.vat.reports.csv') }}">
|
||||
<input type="hidden" id="excelBaseUrl" value="{{ route('business.vat.reports.excel') }}">
|
||||
<input type="hidden" id="pdfBaseUrl" value="{{ route('business.vat.reports.pdf') }}">
|
||||
|
||||
<li>
|
||||
<a id="csvExportLink" href="#">
|
||||
<a class="vat-export-btn" href="{{ route('business.vat.reports.csv') }}">
|
||||
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="CSV">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="excelExportLink" href="#">
|
||||
<a class="vat-export-btn" href="{{ route('business.vat.reports.excel') }}">
|
||||
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="Excel">
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a target="blank" id="pdfExportLink" href="#">
|
||||
<a class="vat-export-btn" target="_blank" href="{{ route('business.vat.reports.pdf') }}">
|
||||
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="Pdf">
|
||||
</a>
|
||||
</li>
|
||||
@@ -81,13 +95,12 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="custom-tabs d-print-none">
|
||||
<button class="tab-item active" onclick="showTab('sales')">{{ __('Sales') }}</button>
|
||||
<button class="tab-item" onclick="showTab('purchase')">{{ __('Purchases') }}</button>
|
||||
<button class="tab-item active" data-tab="sales">{{ __('Sales') }}</button>
|
||||
<button class="tab-item" data-tab="purchases">{{ __('Purchases') }}</button>
|
||||
</div>
|
||||
|
||||
<div id="sales" class="tab-content dashboard-tab active">
|
||||
@@ -96,7 +109,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="purchase" class="tab-content dashboard-tab">
|
||||
<div id="purchases" class="tab-content dashboard-tab">
|
||||
<div id="purchase-vat-reports-data">
|
||||
@include('business::reports.vats.purchase-datas')
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,19 @@
|
||||
{{ __('Tax Report List') }}
|
||||
@endif
|
||||
</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> --}}
|
||||
@if ($filter_from_date && $filter_to_date)
|
||||
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
|
||||
@if ($duration === 'today')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@elseif ($duration === 'yesterday')
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
@else
|
||||
{{ Carbon\Carbon::parse($filter_from_date)->format('d-m-Y') }}
|
||||
{{ __('to') }}
|
||||
{{ Carbon\Carbon::parse($filter_to_date)->format('d-m-Y') }}
|
||||
@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -29,11 +41,12 @@
|
||||
@else
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Supplier') }}</th>
|
||||
@endif
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Tax Number') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Payment Type') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Total Amount') }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Discount') }}</th>
|
||||
@foreach ($vats as $vat)
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ $vat->name }}</th>
|
||||
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ $vat->name . '@' . $vat->rate . '%' }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -50,6 +63,9 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $sale->party?->name }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $sale->party?->tax_no }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;" class="d-print-none">
|
||||
@if ($sale->transactions && $sale->transactions->isNotEmpty())
|
||||
{{ $sale->transactions->map(function($transaction) {
|
||||
@@ -73,8 +89,21 @@
|
||||
{{ currency_format($sale->discountAmount, currency: business_currency()) }}
|
||||
</td>
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
// Product VAT
|
||||
$productVat = $saleVatRowMap[$sale->id][$vat->id] ?? 0;
|
||||
|
||||
// Returned VAT
|
||||
$returnVat = $saleReturnVatRowMap[$sale->id][$vat->id] ?? 0;
|
||||
|
||||
// Invoice VAT
|
||||
$invoiceVat = ($sale->vat_id == $vat->id) ? $sale->vat_amount : 0;
|
||||
|
||||
// Final VAT
|
||||
$totalVat = $productVat + $invoiceVat - $returnVat;
|
||||
@endphp
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $sale->vat_id == $vat->id ? currency_format($sale->vat_amount, currency: business_currency()) : '0' }}
|
||||
{{ currency_format($totalVat, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@@ -89,6 +118,7 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></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($sales->sum('totalAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
@@ -96,8 +126,13 @@
|
||||
{{ currency_format($sales->sum('discountAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
$grandVatTotal = (($salesVatTotals[$vat->id] ?? 0)
|
||||
- ($salesReturnVatTotals[$vat->id] ?? 0))
|
||||
+ $sales->where('vat_id', $vat->id)->sum('vat_amount');
|
||||
@endphp
|
||||
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
|
||||
{{ currency_format($salesVatTotals[$vat->id] ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($grandVatTotal, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@@ -117,6 +152,9 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $purchase->party?->name }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $purchase->party?->tax_no }}
|
||||
</td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;" class="d-print-none">
|
||||
@if ($purchase->transactions && $purchase->transactions->isNotEmpty())
|
||||
{{ $purchase->transactions->map(function($transaction) {
|
||||
@@ -140,8 +178,21 @@
|
||||
{{ currency_format($purchase->discountAmount, currency: business_currency()) }}
|
||||
</td>
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
// Product level VAT
|
||||
$productVat = $purchaseVatRowMap[$purchase->id][$vat->id] ?? 0;
|
||||
|
||||
// Returned VAT
|
||||
$returnVat = $purchaseReturnVatRowMap[$purchase->id][$vat->id] ?? 0;
|
||||
|
||||
// Invoice level VAT
|
||||
$invoiceVat = ($purchase->vat_id == $vat->id) ? $purchase->vat_amount : 0;
|
||||
|
||||
// Final VAT
|
||||
$totalVat = $productVat + $invoiceVat - $returnVat;
|
||||
@endphp
|
||||
<td style="border:1px solid gainsboro; text-align:center;">
|
||||
{{ $purchase->vat_id == $vat->id ? currency_format($purchase->vat_amount, currency: business_currency()) : '0' }}
|
||||
{{ currency_format($totalVat, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@@ -156,6 +207,7 @@
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></td>
|
||||
<td style="border:1px solid gainsboro; text-align:center;"></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($purchases->sum('totalAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
@@ -163,8 +215,13 @@
|
||||
{{ currency_format($purchases->sum('discountAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
$grandVatTotal = (($purchasesVatTotals[$vat->id] ?? 0)
|
||||
- ($purchaseReturnVatTotals[$vat->id] ?? 0))
|
||||
+ $purchases->where('vat_id', $vat->id)->sum('vat_amount');
|
||||
@endphp
|
||||
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
|
||||
{{ currency_format($purchasesVatTotals[$vat->id] ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($grandVatTotal, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
|
||||
@@ -19,11 +19,12 @@
|
||||
<th class="text-start" scope="col">{{ __('Date') }}</th>
|
||||
<th class="text-center d-print-none" scope="col">{{ __('Invoice') }}</th>
|
||||
<th class="text-center" scope="col">{{ __('Supplier') }}</th>
|
||||
<th class="text-center" scope="col">{{ __('Tax Number') }}</th>
|
||||
<th class="text-center" scope="col">{{ __('Total Amount') }}</th>
|
||||
<th class="text-center d-print-none" scope="col">{{ __('Payment Method') }}</th>
|
||||
<th class="text-center d-print-none" scope="col">{{ __('Discount') }}</th>
|
||||
@foreach ($vats as $vat)
|
||||
<th class="text-center">{{ $vat->name }}</th>
|
||||
<th class="text-center">{{ $vat->name . '@' . $vat->rate . '%' }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -33,6 +34,7 @@
|
||||
<td class="text-start">{{ formatted_date($purchase->created_at) }}</td>
|
||||
<td class="text-center d-print-none">{{ $purchase->invoiceNumber }}</td>
|
||||
<td class="text-center">{{ $purchase->party->name ?? '' }}</td>
|
||||
<td class="text-center">{{ $purchase->party->tax_no ?? '' }}</td>
|
||||
<td class="text-center">
|
||||
{{ currency_format($purchase->totalAmount, currency: business_currency()) }}</td>
|
||||
<td class="text-center d-print-none">
|
||||
@@ -50,10 +52,26 @@
|
||||
@endif
|
||||
</td>
|
||||
<td class="text-center d-print-none">
|
||||
{{ currency_format($purchase->discountAmount, currency: business_currency()) }}</td>
|
||||
{{ currency_format($purchase->discountAmount, currency: business_currency()) }}
|
||||
</td>
|
||||
{{-- VAT Columns --}}
|
||||
@foreach ($vats as $vat)
|
||||
<td class="text-center">
|
||||
{{ $purchase->vat_id == $vat->id ? currency_format($purchase->vat_amount, currency: business_currency()) : '0' }}
|
||||
@php
|
||||
// Product level VAT
|
||||
$productVat = $purchaseVatRowMap[$purchase->id][$vat->id] ?? 0;
|
||||
|
||||
// Returned VAT
|
||||
$returnVat = $purchaseReturnVatRowMap[$purchase->id][$vat->id] ?? 0;
|
||||
|
||||
// Invoice level VAT
|
||||
$invoiceVat = ($purchase->vat_id == $vat->id) ? $purchase->vat_amount : 0;
|
||||
|
||||
// Final VAT
|
||||
$totalVat = $productVat + $invoiceVat - $returnVat;
|
||||
@endphp
|
||||
|
||||
<td @class(['text-center','fw-bold' => $totalVat > 0])>
|
||||
{{ currency_format($totalVat, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@@ -64,12 +82,20 @@
|
||||
<td class="text-start fw-bold">{{ __('Total') }}</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="text-center fw-bold">{{ currency_format($purchases->sum('totalAmount'), currency: business_currency()) }}</th>
|
||||
<td class="d-print-none"></td>
|
||||
<td class="text-center fw-bold d-print-none">{{ currency_format($purchases->sum('discountAmount'), currency: business_currency()) }}</th>
|
||||
{{-- VAT Totals --}}
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
$grandVatTotal = (($purchasesVatTotals[$vat->id] ?? 0)
|
||||
- ($purchaseReturnVatTotals[$vat->id] ?? 0))
|
||||
+ $purchases->where('vat_id', $vat->id)->sum('vat_amount');
|
||||
@endphp
|
||||
|
||||
<td class="text-center fw-bold">
|
||||
{{ currency_format($purchasesVatTotals[$vat->id] ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($grandVatTotal, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@@ -77,5 +103,5 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $purchases->appends(['tab' => 'purchases'])->links('vendor.pagination.bootstrap-5') }}
|
||||
{{ $purchases->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="responsive-table tax-report-table m-0">
|
||||
<table class="table dashboard-table-content">
|
||||
<thead class="thead-light">
|
||||
@@ -19,30 +20,36 @@
|
||||
<th class="text-start" scope="col">{{ __('Date') }}</th>
|
||||
<th class="text-center d-print-none" scope="col">{{ __('Invoice') }}</th>
|
||||
<th class="text-center" scope="col">{{ __('Customer') }}</th>
|
||||
<th class="text-center" scope="col">{{ __('Tax Number') }}</th>
|
||||
<th class="text-center" scope="col">{{ __('Total Amount') }}</th>
|
||||
<th class="text-center d-print-none" scope="col">{{ __('Payment Method') }}</th>
|
||||
<th class="text-center d-print-none" scope="col">{{ __('Discount') }}</th>
|
||||
@foreach ($vats as $vat)
|
||||
<th class="text-center">{{ $vat->name }}</th>
|
||||
<th class="text-center">{{ $vat->name . '@' . $vat->rate . '%' }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($sales as $sale)
|
||||
<tr>
|
||||
<td class="text-start">{{ formatted_date($sale->created_at) }}</td>
|
||||
<td class="text-center d-print-none">{{ $sale->invoiceNumber }}</td>
|
||||
<td class="text-center">{{ $sale->party->name ?? '' }}</td>
|
||||
<td class="text-center">{{ $sale->party->tax_no ?? '' }}</td>
|
||||
<td class="text-center">
|
||||
{{ currency_format($sale->totalAmount, currency: business_currency()) }}
|
||||
</td>
|
||||
|
||||
<td class="text-center d-print-none">
|
||||
@if ($sale->transactions && $sale->transactions->isNotEmpty())
|
||||
{{ $sale->transactions->map(function($transaction) {
|
||||
if ($transaction->transaction_type === 'bank_payment' && !empty($transaction->paymentType?->name)) {
|
||||
return $transaction->paymentType->name;
|
||||
}
|
||||
return $transaction->transaction_type ? ucfirst(explode('_', $transaction->transaction_type)[0]) : '';
|
||||
return $transaction->transaction_type
|
||||
? ucfirst(explode('_', $transaction->transaction_type)[0])
|
||||
: '';
|
||||
})->unique()->implode(', ') }}
|
||||
@elseif ($sale->payment_type_id)
|
||||
{{ $sale->payment_type?->name }}
|
||||
@@ -50,37 +57,70 @@
|
||||
{{ $sale->paymentType }}
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-center d-print-none">
|
||||
{{ currency_format($sale->discountAmount, currency: business_currency()) }}</td>
|
||||
{{ currency_format($sale->discountAmount, currency: business_currency()) }}
|
||||
</td>
|
||||
|
||||
{{-- VAT Columns --}}
|
||||
@foreach ($vats as $vat)
|
||||
<td class="text-center">
|
||||
{{ $sale->vat_id == $vat->id ? currency_format($sale->vat_amount, currency: business_currency()) : '0' }}
|
||||
@php
|
||||
// Product VAT
|
||||
$productVat = $saleVatRowMap[$sale->id][$vat->id] ?? 0;
|
||||
|
||||
// Returned VAT
|
||||
$returnVat = $saleReturnVatRowMap[$sale->id][$vat->id] ?? 0;
|
||||
|
||||
// Invoice VAT
|
||||
$invoiceVat = ($sale->vat_id == $vat->id) ? $sale->vat_amount : 0;
|
||||
|
||||
// Final VAT
|
||||
$totalVat = $productVat + $invoiceVat - $returnVat;
|
||||
@endphp
|
||||
|
||||
<td @class(['text-center','fw-bold' => $totalVat > 0])>
|
||||
{{ currency_format($totalVat, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
@if ($sales->count() > 0)
|
||||
<tr class="table-footer">
|
||||
<td class="text-start fw-bold">{{ __('Total') }}</td>
|
||||
<td class="d-print-none"></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
<td class="text-center fw-bold">
|
||||
{{ currency_format($sales->sum('totalAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
|
||||
<td class="d-print-none"></td>
|
||||
|
||||
<td class="text-center fw-bold d-print-none">
|
||||
{{ currency_format($sales->sum('discountAmount'), currency: business_currency()) }}
|
||||
</td>
|
||||
|
||||
{{-- VAT Totals --}}
|
||||
@foreach ($vats as $vat)
|
||||
@php
|
||||
$grandVatTotal = (($salesVatTotals[$vat->id] ?? 0)
|
||||
- ($salesReturnVatTotals[$vat->id] ?? 0))
|
||||
+ $sales->where('vat_id', $vat->id)->sum('vat_amount');
|
||||
@endphp
|
||||
|
||||
<td class="text-center fw-bold">
|
||||
{{ currency_format($salesVatTotals[$vat->id] ?? 0, currency: business_currency()) }}
|
||||
{{ currency_format($grandVatTotal, currency: business_currency()) }}
|
||||
</td>
|
||||
@endforeach
|
||||
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
{{ $sales->appends(['tab' => 'sales'])->links('vendor.pagination.bootstrap-5') }}
|
||||
{{ $sales->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user