update marketing
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 5m14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped

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

View File

@@ -60,11 +60,11 @@
<td class="text-start d-print-none">{{ ucwords(str_replace('_', ' ', $cash_flow->platform)) }}</td>
<td class="text-center {{ $cash_flow->type === 'credit' ? 'text-success' : '' }}">
{{ $cash_flow->type === 'credit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0, currency: business_currency()) }}
{{ $cash_flow->type === 'credit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0) }}
</td>
<td class="text-center {{ $cash_flow->type === 'debit' ? 'text-danger' : '' }}">
{{ $cash_flow->type === 'debit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0, currency: business_currency()) }}
{{ $cash_flow->type === 'debit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0) }}
</td>
<td class="text-center {{ $runningCash < 0 ? 'text-danger' : 'text-success' }}">
@@ -92,10 +92,8 @@
<td class="d-print-none"></td>
<td></td>
<td class="d-print-none text-start"></td>
<td class="text-center text-success">{{ currency_format($page_cash_in, currency: business_currency()) }}
</td>
<td class="text-center text-danger">{{ currency_format($page_cash_out, currency: business_currency()) }}
</td>
<td class="text-center text-success">{{ currency_format($page_cash_in, currency: business_currency()) }}</td>
<td class="text-center text-danger">{{ currency_format($page_cash_out, currency: business_currency()) }}</td>
<td class="text-center {{ $page_running_cash < 0 ? 'text-danger' : 'text-success' }}">
{{ currency_format($page_running_cash, currency: business_currency()) }}
</td>
@@ -108,4 +106,4 @@
<div class="mt-3">
{{ $cash_flows->links('vendor.pagination.bootstrap-5') }}
</div>
</div>

View File

@@ -44,17 +44,15 @@
<td class="text-start">{{ ucwords(str_replace('_', ' ', $cash_flow->platform)) }}</td>
@if ($cash_flow->type === 'credit')
<td class="text-start text-success">{{ currency_format($cash_flow->amount, currency: business_currency()) }}
</td>
<td class="text-start text-success">{{ currency_format($cash_flow->amount, currency: business_currency()) }}</td>
@else
<td class="text-start">{{ currency_format(0, currency: business_currency()) }}</td>
<td class="text-start">{{ currency_format(0) }}</td>
@endif
@if ($cash_flow->type === 'debit')
<td class="text-start text-danger">{{ currency_format($cash_flow->amount, currency: business_currency()) }}
</td>
<td class="text-start text-danger">{{ currency_format($cash_flow->amount, currency: business_currency()) }}</td>
@else
<td class="text-start">{{ currency_format(0, currency: business_currency()) }}</td>
<td class="text-start">{{ currency_format(0) }}</td>
@endif
<td class="text-start {{ $runningCash < 0 ? 'text-danger' : 'text-success' }}">
@@ -83,10 +81,8 @@
<td class="d-print-none"></td>
<td></td>
<td class="d-print-none text-start"></td>
<td class="text-center text-success">{{ currency_format($page_cash_in, currency: business_currency()) }}
</td>
<td class="text-center text-danger">{{ currency_format($page_cash_out, currency: business_currency()) }}
</td>
<td class="text-center text-success">{{ currency_format($page_cash_in, currency: business_currency()) }}</td>
<td class="text-center text-danger">{{ currency_format($page_cash_out, currency: business_currency()) }}</td>
<td class="text-center {{ $page_running_cash < 0 ? 'text-danger' : 'text-success' }}">
{{ currency_format($page_running_cash, currency: business_currency()) }}
</td>
@@ -94,4 +90,4 @@
</tr>
</tfoot>
@endif
</table>
</table>

View File

@@ -23,19 +23,19 @@
<div class="col-lg-2 col-md-6">
<div class="profit-card p-3 m-2 text-white">
<p class="stat-title">{{ __('Cash In') }}</p>
<p class="stat-value">{{ currency_format($total_cash_in, 'icon', 2, business_currency()) }}</p>
<p class="stat-value" id="cashflow_cash_in">{{ currency_format($cashflow_cash_in, 'icon', 2, business_currency()) }}</p>
</div>
</div>
<div class="col-lg-2 col-md-6 ">
<div class="sales-card p-3 m-2 text-white">
<p class="stat-title">{{ __('Cash Out') }}</p>
<p class="stat-value">{{ currency_format($total_cash_out, 'icon', 2, business_currency()) }}</p>
<p class="stat-value" id="cashflow_cash_out">{{ currency_format($cashflow_cash_out, 'icon', 2, business_currency()) }}</p>
</div>
</div>
<div class="col-lg-2 col-md-12 ">
<div class="loss-card p-3 m-2 text-white">
<p class="stat-title">{{ __('Running Cash') }}</p>
<p class="stat-value">{{ currency_format($total_running_cash, 'icon', 2, business_currency()) }}</p>
<p class="stat-value" id="total_running_cash">{{ currency_format($total_running_cash, 'icon', 2, business_currency()) }}</p>
</div>
</div>
</div>
@@ -114,17 +114,17 @@
<div class="table-top-btn-group d-print-none p-2">
<ul>
<li>
<a href="{{ route('business.cash-flow-reports.csv') }}">
<a class="export-btn" href="{{ route('business.cash-flow-reports.csv') }}">
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
</a>
</li>
<li>
<a href="{{ route('business.cash-flow-reports.excel') }}">
<a class="export-btn" href="{{ route('business.cash-flow-reports.excel') }}">
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
</a>
</li>
<li>
<a target="blank" href="{{ route('business.cash-flow-reports.pdf') }}">
<a class="export-btn" target="_blank" href="{{ route('business.cash-flow-reports.pdf') }}">
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
</a>
</li>

View File

@@ -1,15 +1,27 @@
@extends('layouts.business.pdf.pdf_layout')
@section('pdf_title')
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
@include('business::print.header')
<h4 style="text-align: center; margin: 0; padding: 0; font-size: 16px;">{{ __('Cash Flow Report List') }}</h4>
</div>
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
@include('business::print.header')
<h4 style="text-align: center; margin: 0; padding: 0; font-size: 16px;">{{ __('Cash Flow 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
@section('pdf_content')
<table width="100%" cellpadding="6" cellspacing="0"
style="border-collapse: collapse; border: 1px solid gainsboro; font-size:12px;">
<table width="100%" cellpadding="6" cellspacing="0" style="border-collapse: collapse; border: 1px solid gainsboro; font-size:12px;">
<thead>
<tr style="background-color: #C52127; color: white;">
<th style="border:1px solid gainsboro; color:white;" class="text-start">{{ __('Date') }}</th>
@@ -36,39 +48,30 @@
<td style="border:1px solid gainsboro; text-align:center;">{{ $cash_flow->invoice_no }}</td>
@if ($cash_flow->platform == 'sale')
<td style="border:1px solid gainsboro; text-align:center;">{{ $cash_flow->sale?->party?->name ?? 'Guest' }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">{{ $cash_flow->sale?->party?->name ?? 'Guest' }}</td>
@elseif ($cash_flow->platform == 'sale_return')
<td style="border:1px solid gainsboro; text-align:center;">
{{ $cash_flow->saleReturn?->sale?->party?->name ?? 'Guest' }}</td>
<td style="border:1px solid gainsboro; text-align:center;">{{ $cash_flow->saleReturn?->sale?->party?->name ?? 'Guest' }}</td>
@elseif ($cash_flow->platform == 'purchase')
<td style="border:1px solid gainsboro; text-align:center;">
{{ $cash_flow->purchase?->party?->name ?? 'Guest' }}</td>
<td style="border:1px solid gainsboro; text-align:center;">{{ $cash_flow->purchase?->party?->name ?? 'Guest' }}</td>
@elseif ($cash_flow->platform == 'purchase_return')
<td style="border:1px solid gainsboro; text-align:center;">
{{ $cash_flow->purchaseReturn?->purchase?->party?->name ?? 'Guest' }}</td>
<td style="border:1px solid gainsboro; text-align:center;">{{ $cash_flow->purchaseReturn?->purchase?->party?->name ?? 'Guest' }}</td>
@elseif ($cash_flow->platform == 'due_collect' || $cash_flow->platform == 'due_pay')
<td style="border:1px solid gainsboro; text-align:center;">
{{ $cash_flow->dueCollect?->party?->name ?? 'Guest' }}</td>
<td style="border:1px solid gainsboro; text-align:center;">{{ $cash_flow->dueCollect?->party?->name ?? 'Guest' }}</td>
@else
<td style="border:1px solid gainsboro; text-align:center;">N/A</td>
@endif
<td style="border:1px solid gainsboro; text-align:center;">
{{ ucwords(str_replace('_', ' ', $cash_flow->platform)) }}</td>
<td style="border:1px solid gainsboro; text-align:center;">{{ ucwords(str_replace('_', ' ', $cash_flow->platform)) }}</td>
<td
style="border:1px solid gainsboro; text-align:center; {{ $cash_flow->type === 'credit' ? 'color:green;' : '' }}">
{{ $cash_flow->type === 'credit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0, currency: business_currency()) }}
<td style="border:1px solid gainsboro; text-align:center; {{ $cash_flow->type === 'credit' ? 'color:green;' : '' }}">
{{ $cash_flow->type === 'credit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0) }}
</td>
<td
style="border:1px solid gainsboro; text-align:center; {{ $cash_flow->type === 'debit' ? 'color:red;' : '' }}">
{{ $cash_flow->type === 'debit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0, currency: business_currency()) }}
<td style="border:1px solid gainsboro; text-align:center; {{ $cash_flow->type === 'debit' ? 'color:red;' : '' }}">
{{ $cash_flow->type === 'debit' ? currency_format($cash_flow->amount, currency: business_currency()) : currency_format(0) }}
</td>
<td
style="border:1px solid gainsboro; text-align:center; {{ $runningCash < 0 ? 'color:red;' : 'color:green;' }}">
<td style="border:1px solid gainsboro; text-align:center; {{ $runningCash < 0 ? 'color:red;' : 'color:green;' }}">
{{ currency_format($runningCash, currency: business_currency()) }}
</td>
</tr>
@@ -84,8 +87,7 @@
@if ($cash_flows->count() > 0)
<tfoot>
<tr style="background-color:#C52127; color:white; font-weight:bold;">
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">{{__('Total')}}
</td>
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">{{__('Total')}}</td>
<td style="border:1px solid gainsboro;"></td>
<td style="border:1px solid gainsboro;"></td>
<td style="border:1px solid gainsboro;"></td>
@@ -102,4 +104,4 @@
</tfoot>
@endif
</table>
@endsection
@endsection