Fix intervention modal
This commit is contained in:
parent
16a39014a2
commit
86472e0de9
@ -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);
|
||||
|
||||
@ -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}%");
|
||||
});
|
||||
|
||||
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 class="form-check mb-3">
|
||||
<input
|
||||
id="isDefaultCheckbox"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user