Fix intervention modal
This commit is contained in:
parent
16a39014a2
commit
86472e0de9
@ -29,7 +29,7 @@ class ClientLocationController extends Controller
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$filters = $request->only(['client_id', 'is_default', 'search']);
|
$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);
|
$clientLocations = $this->clientLocationRepository->getPaginated($filters, $perPage);
|
||||||
return new ClientLocationCollection($clientLocations);
|
return new ClientLocationCollection($clientLocations);
|
||||||
|
|||||||
@ -43,7 +43,8 @@ class ClientLocationRepository extends BaseRepository implements ClientLocationR
|
|||||||
$search = $filters['search'];
|
$search = $filters['search'];
|
||||||
$query->where(function ($q) use ($search) {
|
$query->where(function ($q) use ($search) {
|
||||||
$q->where('name', 'LIKE', "%{$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('city', 'LIKE', "%{$search}%")
|
||||||
->orWhere('postal_code', 'LIKE', "%{$search}%");
|
->orWhere('postal_code', 'LIKE', "%{$search}%");
|
||||||
});
|
});
|
||||||
@ -71,7 +72,8 @@ class ClientLocationRepository extends BaseRepository implements ClientLocationR
|
|||||||
$search = $filters['search'];
|
$search = $filters['search'];
|
||||||
$query->where(function ($q) use ($search) {
|
$query->where(function ($q) use ($search) {
|
||||||
$q->where('name', 'LIKE', "%{$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('city', 'LIKE', "%{$search}%")
|
||||||
->orWhere('postal_code', 'LIKE', "%{$search}%");
|
->orWhere('postal_code', 'LIKE', "%{$search}%");
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -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>
|
|
||||||
@ -240,6 +240,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="form-check mb-3">
|
<div class="form-check mb-3">
|
||||||
<input
|
<input
|
||||||
id="isDefaultCheckbox"
|
id="isDefaultCheckbox"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user