Notes
![]() ![]() Notes - notes.io |
<app-layout>
<template #header>
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
Campaigns
</h2>
</template>
<div class="py-12">
<div class="p-6 sm:px-20 bg-gray border-b border-gray-200 ">
<div class="bg-gray overflow-hidden shadow-xl">
<table class="w-full">
<tr class="bg-gray text-black">
<th class="px-2 py-1 text-2xl font-bold text-left">ID</th>
<th class="px-2 py-1 text-2xl font-bold text-left">NAME</th>
<th class="px-2 py-1 text-2xl font-bold text-left">DESCRIPTION</th>
<th class="px-2 py-1 text-2xl font-bold text-left">TYPE</th>
<th class="px-2 py-1 text-2xl font-bold text-left" v-if="$page.user.userType != 'user'" >APPROVAL</th>
</tr>
<tr v-for="(campaign, index) in campaign.data" :class="{'bg-gray-300': index%2 === 0}"> <!-- v-if=" campaign.approve == 1 -->
<td class="px-2 py-3 text-xl text-left">{{ campaign.id }}</td>
<td class="px-2 py-3 text-xl text-left">{{ campaign.name }}</td>
<td class="px-2 py-3 text-xl text-left">{{ campaign.description }}</td>
<td class="px-2 py-3 text-xl text-left">{{ campaign.type }}</td>
<td v-if="$page.user.userType != 'user'">
<form @submit.prevent="handleApproval">
<select v-model="campaign.approve">
<option value="1">Approve</option>
<option value="0">Disapprove</option>
</select>
<!-- <input type="checkbox" v-model="campaign.approve" :true-value="1" :false-value="0" > -->
<button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">
Done
</button>
</form>
</td>
</tr>
</table>
<div class="p-5 flex">
</div>
</div>
</div>
</div>
</app-layout>
</template>
<script>
import AppLayout from './../Layouts/AppLayout'
export default {
components: {
AppLayout,
},
props: {
campaign: Object,
},
data() {
return {
approve: '',
campaign: {}
}
},
methods: {
async handleApproval() {
let response = await this.$inertia.post('/campaign/approval/${ campaign.id }', this.campaign)
}
}
}
</script>
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team