From e99d930eccf0860e35f9afaa51c3f322b96a1041 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Tue, 18 Feb 2025 16:35:28 +0700 Subject: [PATCH] feat(email-blast): tambahkan tampilan dan daftar email blast - Menambahkan tampilan detail untuk email blast yang mencakup subjek, konten, jumlah penerima, status, dan tanggal dibuat. - Menambahkan halaman indeks untuk menampilkan daftar email blast dengan kemampuan pencarian dan pagination. - Mengimplementasikan tabel yang dapat diatur dengan opsi untuk memilih dan menampilkan data email blast. --- resources/views/emailblast/create.blade.php | 160 ++++++++++++++++++++ resources/views/emailblast/index.blade.php | 136 +++++++++++++++++ resources/views/emailblast/view.blade.php | 50 ++++++ 3 files changed, 346 insertions(+) create mode 100644 resources/views/emailblast/create.blade.php create mode 100644 resources/views/emailblast/index.blade.php create mode 100644 resources/views/emailblast/view.blade.php diff --git a/resources/views/emailblast/create.blade.php b/resources/views/emailblast/create.blade.php new file mode 100644 index 0000000..f3fa91d --- /dev/null +++ b/resources/views/emailblast/create.blade.php @@ -0,0 +1,160 @@ +@extends('layouts.main') + +@section('breadcrumbs') + {{ Breadcrumbs::render('emailblast.create') }} +@endsection + +@section('content') +
+
+ @csrf +
+
+

+ Create Email Blast +

+
+ Back +
+
+
+
+ +
+ + @error('subject') + {{ $message }} + @enderror +
+
+ +
+ +
+ + @error('recipients_type') + {{ $message }} + @enderror +
+
+ + +
+ +
+ + +
+
+ + + +
+ +
+
+
+
+
+@endsection +@push('scripts') + + + + + + +@endpush diff --git a/resources/views/emailblast/index.blade.php b/resources/views/emailblast/index.blade.php new file mode 100644 index 0000000..2f24bfd --- /dev/null +++ b/resources/views/emailblast/index.blade.php @@ -0,0 +1,136 @@ +@extends('layouts.main') + +@section('breadcrumbs') + {{ Breadcrumbs::render('emailblast.index') }} +@endsection + +@section('content') +
+
+
+

+ Daftar Email Blast +

+
+
+ +
+ +
+
+
+
+ + + + + + + + + + + +
+ + + Subject + + + Jumlah Penerima + + + Status + + + Tanggal Dibuat + + Action
+
+ +
+
+
+@endsection + +@push('scripts') + +@endpush diff --git a/resources/views/emailblast/view.blade.php b/resources/views/emailblast/view.blade.php new file mode 100644 index 0000000..50a6a44 --- /dev/null +++ b/resources/views/emailblast/view.blade.php @@ -0,0 +1,50 @@ +@extends('layouts.main') + +@section('breadcrumbs') + {{ Breadcrumbs::render('emailblast.view', $emailBlast) }} +@endsection + +@section('content') +
+
+

Email Blast Details

+
+
+
+
Subject
+

{{ $emailBlast->subject }}

+
+
+
Content
+
+ {!! $emailBlast->content !!} +
+
+
+
Recipients Count
+

{{ $emailBlast->recipients_count }}

+
+
+
Status
+

+ + {{ ucfirst($emailBlast->status) }} + +

+
+
+
Created At
+

{{ $emailBlast->created_at->format('Y-m-d H:i:s') }}

+
+ @if($emailBlast->updated_at) +
+
Last Updated
+

{{ $emailBlast->updated_at->format('Y-m-d H:i:s') }}

+
+ @endif +
+ +
+@endsection