some fixes

This commit is contained in:
root
2026-02-08 16:57:25 +03:00
parent 725c62a179
commit 9b8d10bbfa
10 changed files with 23678 additions and 256 deletions
@@ -391,8 +391,8 @@ class DealsController extends BaseController
$organizationId = $this->requireActiveOrg();
$userId = $this->getCurrentUserId();
$dealId = $this->request->getPost('deal_id');
$newStageId = $this->request->getPost('stage_id');
$dealId = $this->request->getPost('id');
$newStageId = $this->request->getPost('column_id');
$deal = $this->dealService->getDealWithJoins($dealId, $organizationId);
if (!$deal) {
+11 -3
View File
@@ -9,10 +9,10 @@
style="cursor: grab;">
<div class="card-body py-2 px-3">
<div class="d-flex justify-content-between align-items-start mb-2">
<a href="{{ site_url('/crm/deals/' ~ item.id) }}" class="text-decoration-none">
<a href="{{ site_url('/crm/deals/' ~ item.id) }}" class="text-decoration-none flex-grow-1">
<strong class="text-dark">{{ item.title }}</strong>
</a>
<span class="badge bg-light text-dark">
<span class="badge bg-light text-dark ms-2">
₽{{ item.amount|number_format(0, ',', ' ') }}
</span>
</div>
@@ -35,11 +35,19 @@
{% endif %}
{% if item.expected_close_date %}
<small class="{{ item.expected_close_date < date('today') ? 'text-danger' : 'text-muted' }}">
<small class="{{ item.expected_close_date < date('today') ? 'text-danger fw-bold' : 'text-muted' }}">
<i class="fa-regular fa-calendar me-1"></i>
{{ item.expected_close_date|date('d.m') }}
{% if item.expected_close_date < date('today') %}
<i class="fa-solid fa-circle-exclamation ms-1" style="font-size: 0.6rem;" title="Просрочено"></i>
{% endif %}
</small>
{% endif %}
{# Кнопка просмотра #}
<a href="{{ site_url('/crm/deals/' ~ item.id) }}" class="btn btn-sm btn-outline-primary ms-2" title="Просмотр">
<i class="fa-solid fa-eye"></i>
</a>
</div>
</div>
</div>