diff --git a/resources/js/Components/templates/Dashboard.vue b/resources/js/Components/templates/Dashboard.vue index 7d990f7f..93f14cf7 100644 --- a/resources/js/Components/templates/Dashboard.vue +++ b/resources/js/Components/templates/Dashboard.vue @@ -57,9 +57,10 @@ import { HomeIcon, UsersIcon, FolderOpenIcon, - FolderMinusIcon + FolderMinusIcon, UserMinusIcon, UserPlusIcon,UserGroupIcon } from '@heroicons/vue/24/outline'; + /** Sidebar links. */ const navigation = [ { @@ -79,7 +80,7 @@ const navigation = [ name: 'volunteers_approved', href: 'admin.ong.volunteers', route: route('admin.ong.volunteers', {'status': 'approved'}), - icon: UsersIcon, + icon: UserGroupIcon, subroutes: [], }, { @@ -87,14 +88,14 @@ const navigation = [ href: 'admin.ong.volunteers', route: route('admin.ong.volunteers', {'status': 'pending'}), subroutes: [], - icon: UsersIcon + icon: UserPlusIcon }, { name: 'volunteers_rejected', href: 'admin.ong.volunteers', route: route('admin.ong.volunteers', {'status': 'rejected'}), subroutes: [], - icon: UsersIcon + icon: UserMinusIcon } ], icon: UsersIcon, diff --git a/resources/js/Pages/AdminOng/Volunteers/Volunteers.vue b/resources/js/Pages/AdminOng/Volunteers/Volunteers.vue index b4a64296..3809b07a 100644 --- a/resources/js/Pages/AdminOng/Volunteers/Volunteers.vue +++ b/resources/js/Pages/AdminOng/Volunteers/Volunteers.vue @@ -96,7 +96,7 @@ :title="$t('confirm')" :body="`${$t('confirm_delete_text')} ${person.user?.name} `" actionRoute="route('admin.client.destroy', person.user.id)" - :data="volunteers3.data" + :data="volunteers.data" /> @@ -133,302 +133,4 @@ flash: Object, status: String, }); - onMounted(() => { - console.log(props.volunteers) - }); - - const volunteers1 = { - "current_page": 2, - "data": [ - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - ], - "first_page_url": "http://bursabinelui.test/proiecte?page=1", - "from": 1, - "last_page": 2, - "last_page_url": "http://bursabinelui.test/proiecte?page=2", - "links": [ - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - { - "url": "http://bursabinelui.test/proiecte?page=2", - "label": "2", - "active": false - }, - { - "url": "http://bursabinelui.test/proiecte?page=3", - "label": "3", - "active": false - }, - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - ], - "next_page_url": "http://bursabinelui.test/proiecte?page=3", - "path": "http://bursabinelui.test/proiecte", - "per_page": 15, - "prev_page_url": 'http://bursabinelui.test/proiecte?page=1', - "to": 15, - "total": 20 - } - const volunteers2 = { - "current_page": 2, - "data": [ - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - - - ], - "first_page_url": "http://bursabinelui.test/proiecte?page=1", - "from": 1, - "last_page": 2, - "last_page_url": "http://bursabinelui.test/proiecte?page=2", - "links": [ - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - { - "url": "http://bursabinelui.test/proiecte?page=2", - "label": "2", - "active": false - }, - { - "url": "http://bursabinelui.test/proiecte?page=3", - "label": "3", - "active": false - }, - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - ], - "next_page_url": "http://bursabinelui.test/proiecte?page=3", - "path": "http://bursabinelui.test/proiecte", - "per_page": 15, - "prev_page_url": 'http://bursabinelui.test/proiecte?page=1', - "to": 15, - "total": 20 - } - const volunteers3 = { - "current_page": 2, - "data": [ - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: 'Da' - }, - { - user: { - image: '', - name: 'Jane Cooper', - email: 'jane.cooper@example.com', - phone: '0755864325' - }, - proiect: 'Fundatia pentru Voineasa', - created_at: '12.08.2022', - role: '' - }, - - ], - "first_page_url": "http://bursabinelui.test/proiecte?page=1", - "from": 1, - "last_page": 2, - "last_page_url": "http://bursabinelui.test/proiecte?page=2", - "links": [ - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - { - "url": "http://bursabinelui.test/proiecte?page=2", - "label": "2", - "active": false - }, - { - "url": "http://bursabinelui.test/proiecte?page=3", - "label": "3", - "active": false - }, - { - "url": "http://bursabinelui.test/proiecte?page=1", - "label": "1", - "active": true - }, - ], - "next_page_url": "http://bursabinelui.test/proiecte?page=3", - "path": "http://bursabinelui.test/proiecte", - "per_page": 15, - "prev_page_url": 'http://bursabinelui.test/proiecte?page=1', - "to": 15, - "total": 20 - }