Skip to content

Commit b2cda19

Browse files
committed
chore: wip
1 parent a7ac071 commit b2cda19

File tree

1 file changed

+88
-7
lines changed
  • storage/framework/defaults/views/dashboard/marketing/campaigns

1 file changed

+88
-7
lines changed

storage/framework/defaults/views/dashboard/marketing/campaigns/index.vue

Lines changed: 88 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ const removeCondition = (index: number) => {
14511451

14521452
<div class="sm:flex sm:items-start">
14531453
<div class="mt-3 w-full text-center sm:ml-4 sm:mt-0 sm:text-left">
1454-
<h3 class="text-lg font-medium leading-6 text-gray-900 dark:text-white">
1454+
<h3 class="text-xl font-medium leading-6 text-gray-900 dark:text-white">
14551455
{{ isEditMode ? 'Edit Campaign' : 'Create New Campaign' }}
14561456
</h3>
14571457
<div class="mt-6">
@@ -1525,7 +1525,7 @@ const removeCondition = (index: number) => {
15251525
</div>
15261526

15271527
<!-- Goal Definition Section -->
1528-
<div class="sm:col-span-6">
1528+
<div class="sm:col-span-6 pt-8">
15291529
<div class="border-b border-gray-200 pb-4 dark:border-gray-700">
15301530
<h3 class="text-base font-semibold text-gray-900 dark:text-white">Goal Definition</h3>
15311531
<p class="mt-1 text-sm text-gray-500 dark:text-gray-400">Define what constitutes a successful conversion for this campaign.</p>
@@ -1569,7 +1569,7 @@ const removeCondition = (index: number) => {
15691569
<div class="space-y-4">
15701570
<div>
15711571
<label for="goal-trigger" class="block text-sm font-medium text-gray-700 dark:text-gray-300">
1572-
Goal Trigger
1572+
Trigger
15731573
</label>
15741574
<select
15751575
id="goal-trigger"
@@ -1758,10 +1758,91 @@ const removeCondition = (index: number) => {
17581758
</template>
17591759
</div>
17601760

1761-
<!-- Rest of the existing template code -->
17621761
<!-- Email List Selection -->
1763-
<div v-if="currentCampaign.type === 'Email'" class="sm:col-span-6">
1764-
<!-- ... rest of the existing template ... -->
1762+
<div v-if="currentCampaign.type === 'Email'" class="sm:col-span-6 pt-8">
1763+
<div class="border-b border-gray-200 pb-4 dark:border-gray-700">
1764+
<h3 class="text-base font-semibold text-gray-900 dark:text-white">Email Campaign Settings</h3>
1765+
<p class="mt-1 text-sm text-gray-500 dark:text-gray-400">Configure your email campaign details.</p>
1766+
</div>
1767+
1768+
<div class="mt-4 space-y-4">
1769+
<div>
1770+
<label for="email-list" class="block text-sm font-medium text-gray-700 dark:text-gray-300">
1771+
Email List
1772+
</label>
1773+
<select
1774+
id="email-list"
1775+
v-model="currentCampaign.emailList"
1776+
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-blue-gray-700 dark:text-white sm:text-sm"
1777+
required
1778+
>
1779+
<option value="All Subscribers">All Subscribers</option>
1780+
<option value="Newsletter">Newsletter</option>
1781+
<option value="Product Updates">Product Updates</option>
1782+
<option value="Marketing">Marketing</option>
1783+
<option value="Cart Abandoners">Cart Abandoners</option>
1784+
</select>
1785+
</div>
1786+
1787+
<div>
1788+
<label for="email-subject" class="block text-sm font-medium text-gray-700 dark:text-gray-300">
1789+
Email Subject
1790+
</label>
1791+
<input
1792+
id="email-subject"
1793+
v-model="currentCampaign.emailSubject"
1794+
type="text"
1795+
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-blue-gray-700 dark:text-white sm:text-sm"
1796+
placeholder="Enter email subject"
1797+
required
1798+
/>
1799+
</div>
1800+
1801+
<div>
1802+
<label for="email-sender" class="block text-sm font-medium text-gray-700 dark:text-gray-300">
1803+
Sender Email
1804+
</label>
1805+
<input
1806+
id="email-sender"
1807+
v-model="currentCampaign.emailSender"
1808+
type="email"
1809+
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-blue-gray-700 dark:text-white sm:text-sm"
1810+
placeholder="noreply@example.com"
1811+
required
1812+
/>
1813+
</div>
1814+
1815+
<div>
1816+
<label for="email-template" class="block text-sm font-medium text-gray-700 dark:text-gray-300">
1817+
Email Template
1818+
</label>
1819+
<select
1820+
id="email-template"
1821+
v-model="currentCampaign.emailTemplate"
1822+
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-blue-gray-700 dark:text-white sm:text-sm"
1823+
required
1824+
>
1825+
<option value="default">Default Template</option>
1826+
<option value="newsletter">Newsletter Template</option>
1827+
<option value="promotional">Promotional Template</option>
1828+
<option value="abandoned-cart">Abandoned Cart Template</option>
1829+
</select>
1830+
</div>
1831+
1832+
<div>
1833+
<label for="email-content" class="block text-sm font-medium text-gray-700 dark:text-gray-300">
1834+
Email Content
1835+
</label>
1836+
<textarea
1837+
id="email-content"
1838+
v-model="currentCampaign.emailContent"
1839+
rows="6"
1840+
class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-blue-gray-700 dark:text-white sm:text-sm"
1841+
placeholder="Enter your email content here..."
1842+
required
1843+
></textarea>
1844+
</div>
1845+
</div>
17651846
</div>
17661847

17671848
<!-- Text Message Campaign Fields -->
@@ -1785,7 +1866,7 @@ const removeCondition = (index: number) => {
17851866
</div>
17861867

17871868
<!-- Submit Button -->
1788-
<div class="mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3">
1869+
<div class="mt-12 sm:mt-12 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3">
17891870
<button
17901871
type="submit"
17911872
class="inline-flex w-full justify-center rounded-md border border-transparent bg-blue-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:bg-blue-700 dark:hover:bg-blue-600 sm:col-start-2 sm:text-sm"

0 commit comments

Comments
 (0)