Pagination
This commit is contained in:
@@ -75,13 +75,14 @@ class PersonController extends Controller
|
|||||||
|
|
||||||
$qr = $this->process_rule(null,$currentQuery["rules"],$condition);
|
$qr = $this->process_rule(null,$currentQuery["rules"],$condition);
|
||||||
|
|
||||||
if ($qr) $result = $qr->first();
|
if ($qr) $result = $qr->take(5)->paginate(2);
|
||||||
else $result = [];
|
else $result = [];
|
||||||
|
|
||||||
return Inertia::render(
|
return Inertia::render(
|
||||||
'Rpo/Results',
|
'Rpo/Results',
|
||||||
[
|
[
|
||||||
'result' => $result
|
'result' => $result,
|
||||||
|
'query' => $query,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
28
resources/js/Components/Pagination.vue
Normal file
28
resources/js/Components/Pagination.vue
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<script setup>
|
||||||
|
import { Link } from '@inertiajs/inertia-vue3';
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
links: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({}),
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({}),
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div v-if="links.length > 3">
|
||||||
|
<div class="flex flex-wrap -mb-1">
|
||||||
|
<template v-for="(link, p) in links" :key="p">
|
||||||
|
<div v-if="link.url === null" class="mr-1 mb-1 px-4 py-3 text-sm leading-4 text-gray-400 border rounded"
|
||||||
|
v-html="link.label" />
|
||||||
|
<Link v-else
|
||||||
|
class="mr-1 mb-1 px-4 py-3 text-sm leading-4 border rounded hover:bg-white focus:border-indigo-500 focus:text-indigo-500"
|
||||||
|
:class="{ 'bg-blue-700 text-white': link.active }" method="post" :data="data" :href="link.url" v-html="link.label" />
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
122
resources/js/Components/RpoRecord2.vue
Normal file
122
resources/js/Components/RpoRecord2.vue
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
<script setup>
|
||||||
|
import rpoJsonData from '../Data/RpoTree.json';
|
||||||
|
import { ref, onMounted } from 'vue';
|
||||||
|
import { computed } from 'vue';
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
data: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
rpo: {
|
||||||
|
type: Object,
|
||||||
|
required: false,
|
||||||
|
default: rpoJsonData
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const arrData = computed(() => Object.keys(props.data));
|
||||||
|
|
||||||
|
function keyTitle(key) {
|
||||||
|
return key.split("_").join(" ");
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkValueType(val) {
|
||||||
|
if (typeof val !== "object") {
|
||||||
|
return typeof val;
|
||||||
|
}
|
||||||
|
return Array.isArray(val) ? "array" : "object";
|
||||||
|
}
|
||||||
|
|
||||||
|
function printRpoName(rpoKey) {
|
||||||
|
|
||||||
|
console.log('data',typeof props.rpo[rpoKey]);
|
||||||
|
console.log('rpoKey',rpoKey);
|
||||||
|
if (typeof props.rpo[rpoKey] !== 'undefined'){
|
||||||
|
if (typeof props.rpo[rpoKey]["desc"] !== 'undefined') {
|
||||||
|
console.log(props.rpo[rpoKey]);
|
||||||
|
return props.rpo[rpoKey].desc;
|
||||||
|
}
|
||||||
|
if (typeof props.rpo[rpoKey]["value"] !== 'undefined') {
|
||||||
|
console.log(props.rpo[rpoKey]);
|
||||||
|
return props.rpo[rpoKey].value.desc;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(props.rpo[rpoKey]);
|
||||||
|
return props.rpo[rpoKey]["desc"];
|
||||||
|
}
|
||||||
|
|
||||||
|
return rpoKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
function subRpo(val,kz,i) {
|
||||||
|
console.log('val=',val,'k=',kz,'i=',i);
|
||||||
|
console.log(props.rpo);
|
||||||
|
return props.rpo[kz];
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="table-main">
|
||||||
|
<div
|
||||||
|
v-for="(row, index) in arrData"
|
||||||
|
:key="index"
|
||||||
|
class="row-data m-2 d-flex"
|
||||||
|
>
|
||||||
|
<div class="key p-2 d-inline-block">
|
||||||
|
<div class="text-capitalize ">
|
||||||
|
{{ printRpoName(row) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="['string', 'number'].includes(checkValueType(data[row]))">
|
||||||
|
<div class="value p-2 d-inline-block">{{ data[row] }}</div>
|
||||||
|
</div>
|
||||||
|
<div v-else-if="checkValueType(data[row]) === 'array'">
|
||||||
|
<div v-for="(arrRow, index2) in data[row]" :key="index2" class="d-flex">
|
||||||
|
<div v-if="['string', 'number'].includes(checkValueType(arrRow))">
|
||||||
|
{{ arrRow }}
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<RpoRecord2 :data="arrRow" :rpo="subRpo(arrRow, row,index2)"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<RpoRecord2 :data="data[row]" :rpo="subRpo(data[row],row,index)" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.table-main {
|
||||||
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
|
}
|
||||||
|
.m-2 {
|
||||||
|
margin: .5rem!important;
|
||||||
|
}
|
||||||
|
.mx-2 {
|
||||||
|
margin-right: .5rem!important;
|
||||||
|
}
|
||||||
|
.p-2 {
|
||||||
|
padding: .5rem!important;
|
||||||
|
}
|
||||||
|
.d-flex {
|
||||||
|
display: flex!important;
|
||||||
|
}
|
||||||
|
.d-inline-block {
|
||||||
|
display: inline-block!important;
|
||||||
|
}
|
||||||
|
.text-capitalize {
|
||||||
|
text-transform: capitalize!important;
|
||||||
|
}
|
||||||
|
.key {
|
||||||
|
background: lightgray;
|
||||||
|
}
|
||||||
|
.table-main .row-data {
|
||||||
|
border: 2px solid grey;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
{
|
{
|
||||||
"identifiers": {
|
"identifiers": {
|
||||||
|
"name": "identifiers",
|
||||||
|
"desc": "Identifikátor",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"value": {
|
"value": {
|
||||||
"name": "identifiers.value",
|
"name": "identifiers.value",
|
||||||
"desc": "Identifikátor",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
@@ -12,18 +16,31 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fullNames": {
|
"fullNames": {
|
||||||
|
"name": "fullNames.value",
|
||||||
|
"desc": "Plné meno",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"value": {
|
"value": {
|
||||||
"name": "fullNames.value",
|
"name": "fullNames.value",
|
||||||
"desc": "Plné meno",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
"name": "fullNames.validFrom",
|
"name": "fullNames.validFrom",
|
||||||
"desc": "platnosť od",
|
"desc": "platnosť od",
|
||||||
"type": "Date"
|
"type": "Date"
|
||||||
|
},
|
||||||
|
"validTo": {
|
||||||
|
"name": "fullNames.validTo",
|
||||||
|
"desc": "platnosť do",
|
||||||
|
"type": "Date"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"addresses": {
|
"addresses": {
|
||||||
|
"name": "address.value",
|
||||||
|
"desc": "Adresa",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
"name": "addresses.validFrom",
|
"name": "addresses.validFrom",
|
||||||
"desc": "platnosť od",
|
"desc": "platnosť od",
|
||||||
@@ -74,6 +91,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"legalForms": {
|
"legalForms": {
|
||||||
|
"name": "legalForms.value",
|
||||||
|
"desc": "Právna forma",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"codelistCode": {
|
"codelistCode": {
|
||||||
"name": "legalForms.codelistCode",
|
"name": "legalForms.codelistCode",
|
||||||
"desc": "kód zoznamu"
|
"desc": "kód zoznamu"
|
||||||
@@ -85,7 +106,7 @@
|
|||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"name": "legalForms.value",
|
"name": "legalForms.value",
|
||||||
"desc": "Právna forma",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
@@ -100,6 +121,10 @@
|
|||||||
"type": "Date"
|
"type": "Date"
|
||||||
},
|
},
|
||||||
"activities": {
|
"activities": {
|
||||||
|
"name": "activities",
|
||||||
|
"desc": "Aktivity",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"economicActivityDescription": {
|
"economicActivityDescription": {
|
||||||
"name": "activities.economicActivityDescription",
|
"name": "activities.economicActivityDescription",
|
||||||
"desc": "Typ ekonomickej aktivity",
|
"desc": "Typ ekonomickej aktivity",
|
||||||
@@ -162,6 +187,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"country": {
|
"country": {
|
||||||
|
"name": "statutoryBodies.address.country.value",
|
||||||
|
"desc": "Krajina",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"codelistCode": {
|
"codelistCode": {
|
||||||
"name": "statutoryBodies.address.country.codelistCode",
|
"name": "statutoryBodies.address.country.codelistCode",
|
||||||
"desc": "krajina CL"
|
"desc": "krajina CL"
|
||||||
@@ -173,12 +202,16 @@
|
|||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"name": "statutoryBodies.address.country.value",
|
"name": "statutoryBodies.address.country.value",
|
||||||
"desc": "krajina",
|
"desc": "hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"personName": {
|
"personName": {
|
||||||
|
"name": "statutoryBodies.personName",
|
||||||
|
"desc": "Meno",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"formatedName": {
|
"formatedName": {
|
||||||
"name": "statutoryBodies.personName.formatedName",
|
"name": "statutoryBodies.personName.formatedName",
|
||||||
"desc": "celé meno",
|
"desc": "celé meno",
|
||||||
@@ -197,7 +230,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stakeholders": {
|
"stakeholders": {
|
||||||
|
"name": "stakeholders",
|
||||||
|
"desc": "Zainteresovana osoba",
|
||||||
|
"type": "Number",
|
||||||
|
|
||||||
"stakeholderType": {
|
"stakeholderType": {
|
||||||
|
"name": "stakeholders",
|
||||||
|
"desc": "Typ zainteresovanej osoby",
|
||||||
|
"type": "Number",
|
||||||
|
|
||||||
"codelistCode": {
|
"codelistCode": {
|
||||||
"name": "stakeholders.stakeholderType.codelistCode",
|
"name": "stakeholders.stakeholderType.codelistCode",
|
||||||
"desc": "CL"
|
"desc": "CL"
|
||||||
@@ -209,7 +250,7 @@
|
|||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"name": "stakeholders.stakeholderType.value",
|
"name": "stakeholders.stakeholderType.value",
|
||||||
"desc": "Prartneri v podnikaní",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -219,6 +260,10 @@
|
|||||||
"type": "Date"
|
"type": "Date"
|
||||||
},
|
},
|
||||||
"address": {
|
"address": {
|
||||||
|
"name": "stakeholders.address",
|
||||||
|
"desc": "Adresa",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"street": {
|
"street": {
|
||||||
"name": "stakeholders.address.street",
|
"name": "stakeholders.address.street",
|
||||||
"desc": "Ulica",
|
"desc": "Ulica",
|
||||||
@@ -247,6 +292,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"country": {
|
"country": {
|
||||||
|
"name": "stakeholders.address.country",
|
||||||
|
"desc": "Krajina",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"codelistCode": {
|
"codelistCode": {
|
||||||
"name": "stakeholders.address.country.codelistCode",
|
"name": "stakeholders.address.country.codelistCode",
|
||||||
"desc": "CL"
|
"desc": "CL"
|
||||||
@@ -258,7 +307,7 @@
|
|||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"name": "stakeholders.address.country.value",
|
"name": "stakeholders.address.country.value",
|
||||||
"desc": "Krajina",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -277,9 +326,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"otherLegalFacts": {
|
"otherLegalFacts": {
|
||||||
|
"name": "otherLegalFacts.value",
|
||||||
|
"desc": "Iné právne skutočnosti",
|
||||||
|
"type": "Array",
|
||||||
|
|
||||||
"value": {
|
"value": {
|
||||||
"name": "otherLegalFacts.value",
|
"name": "otherLegalFacts.value",
|
||||||
"desc": "Poznámky k právnym informáciam",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
@@ -289,9 +342,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"authorizations": {
|
"authorizations": {
|
||||||
|
"name": "authorizations.value",
|
||||||
|
"desc": "Oprávnenie konať v mene PO",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"value": {
|
"value": {
|
||||||
"name": "authorizations.value",
|
"name": "authorizations.value",
|
||||||
"desc": "Autorizácia",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
@@ -301,6 +358,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"equities": {
|
"equities": {
|
||||||
|
"name": "equities.value",
|
||||||
|
"desc": "Základé imanie",
|
||||||
|
"type": "Array",
|
||||||
|
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
"name": "equities.validFrom",
|
"name": "equities.validFrom",
|
||||||
"desc": "platné od",
|
"desc": "platné od",
|
||||||
@@ -308,10 +369,14 @@
|
|||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"name": "equities.value",
|
"name": "equities.value",
|
||||||
"desc": "Cenné papiere",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"currency": {
|
"currency": {
|
||||||
|
"name": "equities.currency.value",
|
||||||
|
"desc": "Mena",
|
||||||
|
"type": "Array",
|
||||||
|
|
||||||
"codelistCode": {
|
"codelistCode": {
|
||||||
"name": "equities.currency.codelistCode",
|
"name": "equities.currency.codelistCode",
|
||||||
"desc": "CL"
|
"desc": "CL"
|
||||||
@@ -323,7 +388,7 @@
|
|||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"name": "equities.currency.value",
|
"name": "equities.currency.value",
|
||||||
"desc": "Cenné papiere, mena",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -334,6 +399,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"deposits": {
|
"deposits": {
|
||||||
|
"name": "deposits",
|
||||||
|
"desc": "Vklady",
|
||||||
|
"type": "Array",
|
||||||
|
|
||||||
"validTo": {
|
"validTo": {
|
||||||
"name": "deposits.validTo",
|
"name": "deposits.validTo",
|
||||||
"desc": "Platný do",
|
"desc": "Platný do",
|
||||||
@@ -358,10 +427,15 @@
|
|||||||
},
|
},
|
||||||
"amount": {
|
"amount": {
|
||||||
"name": "deposits.amount",
|
"name": "deposits.amount",
|
||||||
"desc": "Depozit, čiastka",
|
"desc": "Čiastka",
|
||||||
"type": "Number"
|
"type": "Number"
|
||||||
},
|
},
|
||||||
|
|
||||||
"currency": {
|
"currency": {
|
||||||
|
"name": "deposits.currency",
|
||||||
|
"desc": "Mena",
|
||||||
|
"type": "Array",
|
||||||
|
|
||||||
"codelistCode": {
|
"codelistCode": {
|
||||||
"name": "deposits.currency.codelistCode",
|
"name": "deposits.currency.codelistCode",
|
||||||
"desc": "CL"
|
"desc": "CL"
|
||||||
@@ -385,6 +459,10 @@
|
|||||||
},
|
},
|
||||||
"sourceRegister": {
|
"sourceRegister": {
|
||||||
"value": {
|
"value": {
|
||||||
|
"name": "sourceRegister.value",
|
||||||
|
"desc": "Registračný úrad",
|
||||||
|
"type": "Array",
|
||||||
|
|
||||||
"codelistCode": {
|
"codelistCode": {
|
||||||
"name": "sourceRegister.value.codelistCode",
|
"name": "sourceRegister.value.codelistCode",
|
||||||
"desc": "CL"
|
"desc": "CL"
|
||||||
@@ -396,14 +474,14 @@
|
|||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"name": "sourceRegister.value.value",
|
"name": "sourceRegister.value.value",
|
||||||
"desc": "Registračný úrad",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"registrationOffices": {
|
"registrationOffices": {
|
||||||
"value": {
|
"value": {
|
||||||
"name": "sourceRegister.registrationOffices.value",
|
"name": "sourceRegister.registrationOffices.value",
|
||||||
"desc": "Registračný úrad, kancelária",
|
"desc": "Kancelária",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
@@ -413,9 +491,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"registrationNumbers": {
|
"registrationNumbers": {
|
||||||
|
"name": "sourceRegister.registrationNumbers.value",
|
||||||
|
"desc": "Číslo",
|
||||||
|
"type": "Array",
|
||||||
|
|
||||||
"value": {
|
"value": {
|
||||||
"name": "sourceRegister.registrationNumbers.value",
|
"name": "sourceRegister.registrationNumbers.value",
|
||||||
"desc": "Registračné číslo",
|
"desc": "Hodnota",
|
||||||
"type": "String"
|
"type": "String"
|
||||||
},
|
},
|
||||||
"validFrom": {
|
"validFrom": {
|
||||||
@@ -426,6 +508,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"statisticalCodes": {
|
"statisticalCodes": {
|
||||||
|
"name": "statisticalCodes",
|
||||||
|
"desc": "Štatistické kódy",
|
||||||
|
"type": "Object",
|
||||||
|
|
||||||
"statCodesActualization": {
|
"statCodesActualization": {
|
||||||
"name": "statisticalCodes.statCodesActualization",
|
"name": "statisticalCodes.statCodesActualization",
|
||||||
"desc": "Aktualizácia",
|
"desc": "Aktualizácia",
|
||||||
|
|||||||
@@ -5,19 +5,24 @@ import rpoFields from '../../Data/MultiSelectOptionsRPO';
|
|||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { defineEmits } from 'vue'
|
import { defineEmits } from 'vue'
|
||||||
import { Inertia } from '@inertiajs/inertia';
|
import { Inertia } from '@inertiajs/inertia';
|
||||||
import RpoRecord from '@/Components/RpoRecord.vue';
|
import RpoRecord2 from '@/Components/RpoRecord2.vue';
|
||||||
|
import Pagination from '@/Components/Pagination.vue';
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
result: Object,
|
result: Object,
|
||||||
|
query: Object,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<GuestLayout>
|
<GuestLayout>
|
||||||
|
|
||||||
<Head title="Register výsledky" />
|
<Head title="Register výsledky" />
|
||||||
<RpoRecord :data="result"/>
|
<Pagination :links="result.links" :data="query"/>
|
||||||
|
<div v-for="r in result.data" :key="r.id">
|
||||||
|
<RpoRecord2 :data="r"/>
|
||||||
|
</div>
|
||||||
|
<Pagination :links="result.links" :data="query"/>
|
||||||
</GuestLayout>
|
</GuestLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ Route::middleware('auth')->group(function () {
|
|||||||
|
|
||||||
|
|
||||||
Route::get('/all', [PersonController::class, 'index']);
|
Route::get('/all', [PersonController::class, 'index']);
|
||||||
Route::post('/search', [PersonController::class, 'search'])
|
Route::any('/search', [PersonController::class, 'search'])
|
||||||
->name('search');
|
->name('search');
|
||||||
|
|
||||||
require __DIR__.'/auth.php';
|
require __DIR__.'/auth.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user