Documentation

MOPHY - Payment Laravel Bootstrap Admin Dashboard Template

Mophy

Payment Laravel Bootstrap Admin Dashboard Template

This documentation is last updated on 1 July 2023

Thank you for purchasing this HTML template.

If you like this template, Please support us by rating this template with 5 stars


Quick Start -

Requirements

Laravel has a set of requirements in order to run smoothly in specific environment. Please see requirements section in Laravel documentation.

Mophy similarly uses additional plugins and frameworks, so ensure You have Composer installed on Your machine.

Assuming your machine meets all requirements - let's process to installation of Mophy Laravel integration (skeleton).

  1. Open in cmd or terminal app and navigate to this folder
  2. Run following commands composer install cp .env.example .env

    For Windows command line tool use copy command. For unix style - cp.

    php artisan key:generate

For more information about the Laravel installation, check out on this link https://laravel.com/docs/10.x/installation

Sass Compile -

1.- Install Node.js

To compile Sass via the command line first, we need to install node.js. The easiest way is downloading it from the official website nodejs.org open the package and follow the wizard.

2.- Initialize NPM

NPM is the Node Package Manager for JavaScript. NPM makes it easy to install and uninstall third party packages. To initialize a Sass project with NPM, open your terminal and CD (change directory) to your project folder.

npm init

Once in the correct folder, run the command npm init. You will be prompted to answer several questions about the project, after which NPM will generate a package.json file in your folder.

3.- Install Node-Sass

Node-sass is an NPM package that compiles Sass to CSS (which it does very quickly too). To install node-sass run the following command in your terminal: npm install node-sass

npm install node-sass
4.- Write Node-sass Command

Everything is ready to write a small script in order to compile Sass. Open the package.json file in a code editor. You will see something like this: In the scripts section add an scss command

"scripts": {
  "sass": "node-sass --watch scss/main.scss css/style.css"
},
5.- Run the Script

To execute our one-line script, we need to run the following command in the terminal: npm run sass

npm run sass
6.- Other Option

--source-map

"sass": "node-sass --watch scss/main.scss css/style.css --source-map css/style.css.map"

Folder Directories -

  • mophy
    • resources
      • views
        • mophy
          • app
            • calender.blade.php
            • post_details.blade.php
            • profile.blade.php
          • blog
            • add_blog.blade.php
            • blog.blade.php
            • blog_category.blade.php
          • chart
            • chartist.blade.php
            • chartjs.blade.php
            • flot.blade.php
            • morris.blade.php
            • peity.blade.php
            • sparkline.blade.php
          • content
            • content.blade.php
            • content_add.blade.php
          • dashboard
            • cards_center.blade.php
            • index.blade.php
            • invoices.blade.php
            • menu.blade.php
            • my_wallet.blade.php
            • transactions.blade.php
            • transactions_details.blade.php
          • ecommerce
            • checkout.blade.php
            • customers.blade.php
            • invoice.blade.php
            • product_detail.blade.php
            • product_grid.blade.php
            • product_list.blade.php
            • product_order.blade.php
          • form
            • ckeditor.blade.php
            • element.blade.php
            • pickers.blade.php
            • validation.blade.php
            • wizard.blade.php
          • map
            • jqvmap.blade.php
          • message
            • add_email.blade.php
            • compose.blade.php
            • inbox.blade.php
            • email_template.blade.php
            • read.blade.php
          • page
            • empty.blade.php
            • error_400.blade.php
            • error_403.blade.php
            • error_404.blade.php
            • error_500.blade.php
            • error_503.blade.php
            • forgot_password.blade.php
            • lock_screen.blade.php
            • login.blade.php
            • register.blade.php
          • table
            • bootstrap_basic.blade.php
            • datatable_basic.blade.php
          • uc
            • lightgallery.blade.php
            • nestable.blade.php
            • noui_slider.blade.php
            • select2.blade.php
            • sweetalert.blade.php
            • toastr.blade.php
          • ui
            • accordion.blade.php
            • alert.blade.php
            • badge.blade.php
            • button.blade.php
            • button_group.blade.php
            • card.blade.php
            • carousel.blade.php
            • dropdown.blade.php
            • grid.blade.php
            • list_group.blade.php
            • modal.blade.php
            • pagination.blade.php
            • popover.blade.php
            • progressbar.blade.php
            • tab.blade.php
            • typography.blade.php
          • widget
            • widget_card.blade.php
            • widget_chart.blade.php
            • widget_list.blade.php
        • elements
          • footer.blade.php
          • header.blade.php
          • sidebar.blade.php
        • errors
          • 400.blade.php
          • 403.blade.php
          • 404.blade.php
          • 500.blade.php
          • 503.blade.php
        • layout
          • default.blade.php
          • fullwidth.blade.php
          • fullwidth2.blade.php
    • public
      • css
      • icons
      • images
      • js
      • scss
      • vendor
    • config
      • dz.php
    • app
      • Http
        • Controllers
          • MophyadminController.php
      • Helper
        • DzHelper.php
      • Providers
        • DzServiceProvider.php

Admin Theme Features -

js/deznav-init.js

var dezSettingsOptions = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_1",
	headerBg: "color_1",
	navheaderBg: "color_1",
	sidebarBg: "color_1",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full"
};

Color Theme -

So many color option available

  • color_1
  • color_2
  • color_3
  • color_4
  • color_5
  • color_6
  • color_7
  • color_8
  • color_9
  • color_10
  • color_11
  • color_12
  • color_13
  • color_14
  • color_15
var dezSettingsOptions = {
	typography: "poppins",  		More Options => ["poppins" , "roboto" , "Open Sans" , "Helventivca" ]
	version: "light",       		More Options => ["light" , "dark"]
	layout: "horizontal",   		More Options => ["horizontal" , "vertical"]
	primary: "color_11",			More Options => ["color_1," , "color_2," ..... "color_15"]
	headerBg: "color_1",			More Options => ["color_1," , "color_2," ..... "color_15"]
	navheaderBg: "color_1",			More Options => ["color_1," , "color_2," ..... "color_15"]
	sidebarBg: "color_11",			More Options => ["color_1," , "color_2," ..... "color_15"]
	sidebarStyle: "compact",		More Options => ["full" , "mini" , "compact" , "modern" , "overlay" , "icon-hover"]
	sidebarPosition: "static",		More Options => ["static" , "fixed"]
	headerPosition: "fixed",		More Options => ["static" , "fixed"]
	containerLayout: "full",		More Options => ["full" , "wide" , "wide-box"]
};

var dezThemeSet1 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_5",
	headerBg: "color_5",
	navheaderBg: "color_1",
	sidebarBg: "color_1",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full"
};

var dezThemeSet2 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_11",
	headerBg: "color_1",
	navheaderBg: "color_11",
	sidebarBg: "color_11",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full"
};

var dezThemeSet3 = {
	typography: "poppins",
	version: "dark",
	layout: "vertical",
	primary: "color_1",
	headerBg: "color_3",
	navheaderBg: "color_3",
	sidebarBg: "color_8",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full"
};

var dezThemeSet4 = {
	typography: "poppins",
	version: "light",
	layout: "vertical",
	primary: "color_15",
	headerBg: "color_1",
	navheaderBg: "color_15",
	sidebarBg: "color_1",
	sidebarStyle: "full",
	sidebarPosition: "fixed",
	headerPosition: "fixed",
	containerLayout: "full"
};

var dezThemeSet5 = {
	typography: "poppins",
	version: "light",
	layout: "horizontal",
	primary: "color_9",
	headerBg: "color_1",
	navheaderBg: "color_1",
	sidebarBg: "color_9",
	sidebarStyle: "modern",
	sidebarPosition: "static",
	headerPosition: "fixed",
	containerLayout: "full"
};

Navigation Bar

                        
dezSettingsOptions = {
    typography: "poppins",
    version: "light",
    layout: "vertical",
    primary: "color_1",
    headerBg: "color_1",
    navheaderBg: "color_1",
    sidebarBg: "color_1",
    sidebarStyle: "full",
    sidebarPosition: "fixed",
    headerPosition: "fixed",
    containerLayout: "full",
    direction: direction,
    navTextColor:'color_1',
    navigationBarImg: 'images/sidebar-img/1.jpg'  /* image path or null*/
};

Credits -

HTML Structure -

Head Structure

1

Header

2

Footer

3

Footer Essentials

4

Share Button -

You can hide buy now and share buttons by comment the given code as shown below with red mark in the screenshot.

File Path assets/js/custom.js

8

Contact Form Handler -

1. Simple Mail Function

File Path assets/script/contact.php

8
2. Using SMTP

Enter the required details for the SMTP server. These should be provided by your system administrator.

Host = '<Put Your Server Host>';
Username = '<Put Your SMTP Username>';
Password = '<Put Your SMTP Password>';
SMTPSecure = '<PHPMailer::ENCRYPTION_SMTPS or 'ssl' OR PHPMailer::ENCRYPTION_STARTTLS or 'tls'>';
Port = '<465 or 587>';
8

reCAPTCHA -

8
Register your website and get Secret Key.

Very first thing you need to do is register your website on Google recaptcha to do that click here.

Login to your Google account and submit the form.

8

Once submit, Google will provide you following two information.

  • Site key
  • Secret key
Integrate Google reCAPTCHA in your website.

To integrate it into your website you need to put it in client side as well as in Server side. In client HTML page you need to integrate this line before HEADtag.

10

And to show the widget into your form you need to put this below contact form, comment form etc.

10

When the form get submit to Server, this script will send ‘g-recaptcha-response’ as a POST data. You need to verify it in order to see whether user has checked the Captcha or not.

Sample project

Here is the HTML code for the simple form with comment box and submit button. On submit of this form we will use PHP in back-end to do the Google reCAPTCHA validation.

8

This will generate this form.

8

On server side i am using PHP for now. So on Form submit request we will check the POST variable.

8

try out the demo to see how it works.

MailChimp -

MailChimp is an email marketing service, helps to manage the subscribers of your website. MailChimp provides an easy way to integrate email signup form in your website and send the email newsletter to the subscriber. Beside the premium plan MailChimp also has a forever free plan. Using the free plan, you can add up to 2,000 subscribers to MailChimp and send 12,000 emails per month to the subscriber.

In this tutorial, we’ll show you how to integrate newsletter subscription form in your website and add subscriber to list with MailChimp using PHP. We’ll use MailChimp API 3.0 and PHP to add subscriber to list without confirmation email.

To integrate MailChimp API in PHP you need a MailChimp API Key and List ID where you want to add members. Before you begin, sign up for a MailChimp account and follow the below steps to get API Key and List ID.

Creating API Key and List ID

Get API Key:

1. Login to your MailChimp account.

2. Under the user menu dropdown at the top left side, click on Account link.

12

3. Go to the Extras » API Keys from the top navigation menu.

13

Under the Your API keys section, create an API Key by clicking on Create A Key button. Once generated, copy API key for later use in PHP script.

13

Get List ID:

1. Choose a list in which all the subscriber’s information would be stored. In that case, you need to create a list in the Lists page.

14

Enter into your created list and navigate to Settings » List name and campaign defaults.

15

Under the List ID label you will find the List ID. Copy List ID for later use in PHP script.

15

In our example script, a simple newsletter subscription form will be implemented. Once the user submits the subscription form along with the details (First Name, Last Name, and Email), respective details would be added to the list of MailChimp account using MailChimp API and PHP. Also, the subscriber would be able to receive the newsletter of your website via MailChimp.

Subscription Form (index.php)

The index.php file contains the custom subscription form HTML. The subscriber needs to enter their First Name, Last Name, and Email. By clicking on SUBSCRIBE button, the form will submit to the action.php file for adding the subscriber to the MailChimp subscriber list.

16

Add subscriber to MailChimp List (action.php)

In the action.php file, subscription form data is received and send the subscriber details to the MailChimp using MailChimp API and PHP. To Use MailChimp API, you need to mention API Key and List ID. Insert the API Key and List ID which you’ve got in the previous step.

Here cURL is used to send an HTTP POST request to the List Members endpoint with member information. After adding the subscriber to MailChimp list, the call returns a response. Based on the response ($httpCode) , the status message would be shown to the subscriber.

To add a subscriber, you must include the subscriber’s status in your JSON object. If you include the subscriber’s status subscribed , subscriber email address would be added right away without sending a confirmation email. Use pending status to send a confirmation email to subscriber.

16
Conclusion

This example code helps to add subscribers to mailChimp list from the website through custom subscription form. You can see the added subscriber’s list from MilChimp account. Login to your MailChimp account and go to the subscriber’s list, you’ll see the newly added subscribers in the list.


AddThis -

Please Sign Up

https://www.addthis.com/register
16 16

Do You Need Help To Customization

After Purchase A Template...

You Will Start Customizing According Your Requirement
BUT What If You Don't Know

SOLUTION IS HIRE DexignZone

Hire Same Team For Quality Customization

  • In Order To Ensure Your Website Is Live, We Will Customize
  • The Template According To Your Requirements And Upload It to the Server.

Version History - #back to top

v1.1 - 1 July 2023
  • Update:- Laravel 8.x to Laravel 10.x
  • Added:- Add Helper and Dzserviceprovider files
  • Added:- +06 CMS Pages in Admin
  • Update:- Bootstrap v5.2x
  • Added:- Google reCaptcha
  • Update:- jQuery v3.7.0
  • Update:- Font Awasome 6
  • Update Documentation
  • Added Navigation functionality
  • Design Update:- Authentication pages
  • Design Update:- Error pages
  • Bug Fixed:- Design issue resolve
  • Bug Fixed:- HTML W3 Validation
  • Resolve some CSS issue for better visualability
  • Bug Fixed:- Firefox scrolling issue resolve
  • Improvement :- HTML, CSS, SCSS and JS File Improve
v1.0 - 28 December 2020
  • New - Created & Upload Mophy