changes in email template for enquiries and form submittion, other all minor error fixed.
This commit is contained in:
@@ -20,8 +20,11 @@ class CounselorController extends Controller
|
||||
$model = Counselor::query()->latest();
|
||||
return DataTables::eloquent($model)
|
||||
->addIndexColumn()
|
||||
->addColumn('checkbox', function (Counselor $enquiry) {
|
||||
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
|
||||
})
|
||||
->addColumn('action', 'ccms::counselor.datatable.action')
|
||||
->rawColumns(['action'])
|
||||
->rawColumns(['checkbox', 'action'])
|
||||
->toJson();
|
||||
}
|
||||
return view('ccms::counselor.index', [
|
||||
|
@@ -18,10 +18,14 @@ class EnquiryController extends Controller
|
||||
|
||||
public function index()
|
||||
{
|
||||
$is_enrolled = request()->get('is_enrolled', null);
|
||||
if (request()->ajax()) {
|
||||
$model = Enquiry::query()->latest();
|
||||
return DataTables::eloquent($model)
|
||||
->addIndexColumn()
|
||||
->addColumn('checkbox', function (Enquiry $enquiry) {
|
||||
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
|
||||
})
|
||||
->setRowClass(function (Enquiry $enquiry) {
|
||||
return $enquiry->is_read ? 'text-muted' : 'text-dark';
|
||||
})
|
||||
@@ -35,7 +39,7 @@ class EnquiryController extends Controller
|
||||
return $enquiry->message ?? '-';
|
||||
})
|
||||
->addColumn('action', 'ccms::enquiry.datatable.action')
|
||||
->rawColumns(['action'])
|
||||
->rawColumns(['checkbox', 'action'])
|
||||
->toJson();
|
||||
}
|
||||
return view('ccms::enquiry.index', [
|
||||
|
@@ -22,8 +22,11 @@ class FranchiseController extends Controller
|
||||
$model = Franchise::query()->latest();
|
||||
return DataTables::eloquent($model)
|
||||
->addIndexColumn()
|
||||
->addColumn('checkbox', function (Franchise $enquiry) {
|
||||
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
|
||||
})
|
||||
->addColumn('action', 'ccms::franchise.datatable.action')
|
||||
->rawColumns(['action'])
|
||||
->rawColumns(['checkbox', 'action'])
|
||||
->toJson();
|
||||
}
|
||||
return view('ccms::franchise.index', [
|
||||
@@ -112,5 +115,4 @@ class FranchiseController extends Controller
|
||||
return redirect()->back()->with('error', $th->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -22,8 +22,11 @@ class NewsletterController extends Controller
|
||||
$model = Newsletter::query()->latest();
|
||||
return DataTables::eloquent($model)
|
||||
->addIndexColumn()
|
||||
->addColumn('checkbox', function (Newsletter $enquiry) {
|
||||
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
|
||||
})
|
||||
->addColumn('action', 'ccms::newsletter.datatable.action')
|
||||
->rawColumns(['action'])
|
||||
->rawColumns(['checkbox', 'action'])
|
||||
->toJson();
|
||||
}
|
||||
return view('ccms::newsletter.index', [
|
||||
@@ -111,5 +114,4 @@ class NewsletterController extends Controller
|
||||
return redirect()->back()->with('error', $th->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -22,18 +22,16 @@ class VacancyController extends Controller
|
||||
$model = Vacancy::query()->latest();
|
||||
return DataTables::eloquent($model)
|
||||
->addIndexColumn()
|
||||
->addColumn('checkbox', function (Vacancy $enquiry) {
|
||||
return '<input type="checkbox" class="enquiry-select" value="' . $enquiry->id . '" data-name="' . $enquiry->name . '">';
|
||||
})
|
||||
->addColumn('action', 'ccms::vacancy.datatable.action')
|
||||
->rawColumns(['action'])
|
||||
->rawColumns(['checkbox', 'action'])
|
||||
->toJson();
|
||||
}
|
||||
return view('ccms::vacancy.index', [
|
||||
'title' => 'Vacancy List',
|
||||
]);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user