- Implemented FranchiseController with CRUD operations and data handling. - Created NewsletterController for managing newsletter subscriptions. - Added routes for Franchise and Newsletter resources in web.php. - Developed views for Franchise and Newsletter management including index, create, edit, and datatable actions. - Introduced form handling and validation for Franchise and Newsletter submissions. - Created database migrations for franchises and newsletters tables. - Updated sidebar configuration to include Franchise and Newsletter sections. - Enhanced client-side forms with AJAX submission for Franchise and Newsletter.
34 lines
1.3 KiB
PHP
34 lines
1.3 KiB
PHP
@extends('layouts.app')
|
|
@section('content')
|
|
<div class="container-fluid">
|
|
<x-dashboard.breadcumb :title="$title" />
|
|
<div class="card">
|
|
<div class="card-header align-items-center d-flex">
|
|
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
@php
|
|
$columns = [
|
|
[
|
|
'title' => 'S.N',
|
|
'data' => 'DT_RowIndex',
|
|
'name' => 'DT_RowIndex',
|
|
'orderable' => false,
|
|
'searchable' => false,
|
|
'sortable' => false,
|
|
],
|
|
['title' => 'Email', 'data' => 'email', 'name' => 'email'],
|
|
[
|
|
'title' => 'Action',
|
|
'data' => 'action',
|
|
'orderable' => false,
|
|
'searchable' => false,
|
|
],
|
|
];
|
|
@endphp
|
|
<x-data-table-script :route="route('newsletter.index')" :reorder="null" :columns="$columns" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|