Fix intervention modal

This commit is contained in:
kevin 2026-01-20 17:32:50 +03:00
parent 16a39014a2
commit 86472e0de9
5 changed files with 765 additions and 475 deletions

View File

@ -29,7 +29,7 @@ class ClientLocationController extends Controller
{
try {
$filters = $request->only(['client_id', 'is_default', 'search']);
$perPage = $request->get('per_page', 10);
$perPage = (int) $request->get('per_page', 10);
$clientLocations = $this->clientLocationRepository->getPaginated($filters, $perPage);
return new ClientLocationCollection($clientLocations);

View File

@ -43,7 +43,8 @@ class ClientLocationRepository extends BaseRepository implements ClientLocationR
$search = $filters['search'];
$query->where(function ($q) use ($search) {
$q->where('name', 'LIKE', "%{$search}%")
->orWhere('address', 'LIKE', "%{$search}%")
->orWhere('address_line1', 'LIKE', "%{$search}%")
->orWhere('address_line2', 'LIKE', "%{$search}%")
->orWhere('city', 'LIKE', "%{$search}%")
->orWhere('postal_code', 'LIKE', "%{$search}%");
});
@ -71,7 +72,8 @@ class ClientLocationRepository extends BaseRepository implements ClientLocationR
$search = $filters['search'];
$query->where(function ($q) use ($search) {
$q->where('name', 'LIKE', "%{$search}%")
->orWhere('address', 'LIKE', "%{$search}%")
->orWhere('address_line1', 'LIKE', "%{$search}%")
->orWhere('address_line2', 'LIKE', "%{$search}%")
->orWhere('city', 'LIKE', "%{$search}%")
->orWhere('postal_code', 'LIKE', "%{$search}%");
});

View File

@ -1,29 +0,0 @@
<template>
<div class="form-group">
<label :for="id">
<slot />
</label>
<textarea
:id="id"
class="form-control"
rows="5"
:placeholder="placeholder"
></textarea>
</div>
</template>
<script>
export default {
name: "SoftTextarea",
props: {
id: {
type: String,
required: true,
},
placeholder: {
type: String,
default: "Your text here...",
},
},
};
</script>

View File

@ -240,6 +240,8 @@
</div>
</div>
<div class="form-check mb-3">
<input
id="isDefaultCheckbox"