diff --git a/app/Livewire/ClientsTable.php b/app/Livewire/ClientsTable.php index 1f95426..9998701 100644 --- a/app/Livewire/ClientsTable.php +++ b/app/Livewire/ClientsTable.php @@ -17,10 +17,14 @@ class ClientsTable extends Component use WithPagination, WithoutUrlPagination; public $status; + public $count; + public $mode;//short || full - public function mount($status = null) + public function mount($status = null, $count = 10, $mode = 'full') { $this->status = $status; + $this->count = $count; + $this->mode = $mode; } public function getDeals() @@ -49,17 +53,17 @@ public function render() { $deals = $deals ->whereIn('status', [DealStatus::UNIQUE]) - ->orderBy('id', 'desc')->paginate(10, ['*'], 'unique_clients'); + ->orderBy('id', 'desc')->paginate($this->count, ['*'], 'unique_clients'); } elseif ($this->status && $this->status == DealStatus::NOT_UNIQUE) { $deals = $deals ->whereIn('status', [DealStatus::MODERATION, DealStatus::NEW , DealStatus::NOT_UNIQUE]) - ->orderBy('id', 'desc')->paginate(10, ['*'], 'not_unique_clients'); + ->orderBy('id', 'desc')->paginate($this->count, ['*'], 'not_unique_clients'); } else { - $deals = $deals->orderBy('id', 'desc')->paginate(10, ['*'], 'all_clients'); + $deals = $deals->orderBy('id', 'desc')->paginate($this->count, ['*'], 'all_clients'); } ; diff --git a/resources/css/app.css b/resources/css/app.css index edf78f5..6beb8d0 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -34,16 +34,24 @@ input[type="radio"]:checked+label { } /*pagination*/ -.page-item, -.page-link { +.page-item>.page-link, +.page-item:first-child .page-link, +.page-item:last-child .page-link { color: #ccc; - border-color: #ccc + border-color: #ccc; + border-radius: 12px; + margin: 0 6px 0px 6px !important; + padding-top: 8px; + width: 40px; + height: 40px; + text-align: center; } + .active>.page-link { - background-color: #e6662a !important; - color: white !important; - border-color: #e6662a !important; + background-color: #ffffff !important; + color: rgb(44, 44, 44) !important; + border-color: #b6b6b6 !important; } .page-item:not(.active)>.page-link:hover { diff --git a/resources/views/left-panel.blade.php b/resources/views/left-panel.blade.php index 373826a..b508c9e 100644 --- a/resources/views/left-panel.blade.php +++ b/resources/views/left-panel.blade.php @@ -11,6 +11,12 @@ class="nav-link d-flex align-items-center gap-2 fs-5 border rounded-4 active" ar Клиенты +
|
{{ $deal->user->name }}
- @if($deal->status == $statuses::MODERATION)
+ @if ($deal->status == $statuses::MODERATION)
- На проверке уникальности
+ На проверке уникальности
@endif
|
- - {{ $deal->user->phone }} - | -- {{ $deal->user->email }} - | -- {{ $deal->complex->city->name }} - | + @if ($mode == 'full') ++ {{ $deal->user->phone }} + | ++ {{ $deal->user->email }} + | ++ {{ $deal->complex->city->name }} + | ++ + + + | + @endif @endforeach
+ Иркутск, ул. 4-я Совесткая, 11
+
+ Иркутск, ул. 4-я Совесткая, 11
+
+ Иркутск, ул. 4-я Совесткая, 11
+
+ Иркутск, ул. 4-я Совесткая, 11
+
+ Иркутск, ул. 4-я Совесткая, 11
+
+ Иркутск, ул. 4-я Совесткая, 11
+
+ Иркутск, ул. 4-я Совесткая, 11
+
+ Иркутск, ул. 4-я Совесткая, 11
+
+ Иркутск, ул. 4-я Совесткая, 11
++7 999 999 99 99
-+7 999 999 99 99
-+7 999 999 99 99
-