@extends('layouts.default')
@section('title', 'Tickets')
@section('content')



            

@section('scripts')
    <script src="//ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script>
    <script src="https://cdn.ckeditor.com/4.11.1/standard-all/ckeditor.js"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.0.1/min/dropzone.min.css" rel="stylesheet">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/min/dropzone.min.js"></script>
     <script src="{{ asset('js/simple-lightbox.min.js') }}"></script>
<script src="https://cdn.jsdelivr.net/clipboard.js/1.5.16/clipboard.min.js"></script>

<script type="text/javascript">

    
    $('.pcancel').click(function()
    {
        $(this).hide();
        var itemWrapper = $(this).closest('.item-container');

        itemWrapper.find('.pname,.pedit').show();
        itemWrapper.find('.psave').hide();
        itemWrapper.find('.pcom_text').hide();
        itemWrapper.find('.pcom_text').val('');

    });
});
</script>
@stop



==============part 1=========

                       

=================== 1 ============================

How to use bootstrap datepicker in Laravel 5 ?

<meta name="description" content="laravel datepicker example, laravel 5 bootstrap datepicker example, laravel 5.4 datepicker format, how to use datepicker in laravel 5, use bootstrap datepicker laravel 5 example, datepicker format laravel, bootstrap 3 datepicker laravel 5">


your.blade.php

[php]
<!DOCTYPE html>
<html>
<head>
  <title>PHP Laravel 5.7 Bootstrap Datepicker</title>
  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
  <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css" rel="stylesheet">
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>
</head>
<body>
<div class="container">
    <h1>Laravel 5.7 Bootstrap Datepicker</h1>
    <input class="date form-control" type="text">
</div>
<script type="text/javascript">
    $('.date').datepicker({  
       format: 'mm-dd-yyyy'
     });  
</script>  
</body>

</html>
[/php]

===================== 2 ====================================

<meta name="description" content="laravel login registration tutorial, laravel 5 login and registration, laravel 5 simple login form, how to create login page in laravel 5.4, laravel 5 login logout, laravel register page, laravel login register authentication">


Laravel login registration tutorial example using auth scaffold


//laravel application from bellow terminal command.
composer create-project --prefer-dist laravel/laravel blog

//run migration 
php artisan migrate

// Laravel 5 login and register using the auth make command.
php artisan auth:make

====================== 3 ===================
<meta name="description" content="laravel 5 doctrine/dbal, fatal error class 'doctrine dbal driver pdomysql driver', class doctrine dbal driver pdo mysql driver not found laravel, unknown database type enum requested, doctrine\dbal\platforms\mysqlplatform may not support it">

Solved - Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found Laravel


php artisan migrate


I found bellow error when i run above command:

[Symfony\Component\Debug\Exception\FatalThrowableError]

Class 'Doctrine\DBAL\Driver\PDOMySql\Driver' not found


composer require doctrine/dbal

after install successfully, run again migration, it works!!!

======================== 4 ===================
<meta name="description" content="phpunit laravel package issue, Skipped installation of bin phpunit for package phpunit/phpunit: file not found in package, Could not scan for classes inside vendor/phpunit/php-code-coverage/src, phpunit package install issue in laravel 5">


Solved - "Skipped installation of bin phpunit for package phpunit/phpunit: file not found in package"



composer create-project --prefer-dist laravel/laravel blog


But, when installing vendor package i found bellow error regrading of phpunit.
"Skipped installation of bin phpunit for package phpunit/phpunit: file not found in package"
and i found error with red color background :
"Could not scan for classes inside "/blog/vendor/phpunit/php
-code-coverage/src/" which does not appear to be a file nor a folder"


composer clearcache

After this i run again bellow command and i solved my problem.

composer create-project --prefer-dist laravel/laravel blog

=============================== 5 =====================

Laravel redirect route with query string example
<meta name="description" content="laravel 5 redirect with query string, laravel redirect back with query string, laravel route with query string, laravel redirect route with parameters, laravel redirect route with id, laravel redirect route with params, redirect route with message laravel">

Redirect to Named Route

public function show()
{
    return redirect()->route('home');
}

Redirect to Named Route with parameters

public function show()
{
    return redirect()->route('item.view',['id'=>2]);
}

Redirect to Named Route with query string

public function show()
{
    return redirect()->route('home')
        ->with('message','I am back to home page.');

}
====================== 6 ====================

Laravel timepicker example using bootstrap datetimepicker plugin
<meta name="description" content="timepicker in laravel 5 example, laravel bootstrap time picker example, laravel bootstrap datetimepicker plugin example, datetimepicker jquery laravel php, how to use timepicker in laravel, bootstrap timepicker example laravel">

your.blade.php

<!DOCTYPE html>

<html>

<head>

  <title>Laravel Bootstrap Timepicker</title>

  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>

  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js"></script>

  <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker.min.css" rel="stylesheet">

  <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js"></script>  

</head>

<body>

<div class="container">

    <h1>Laravel Bootstrap Timepicker</h1>

    <div style="position: relative">

      <strong>Timepicker:</strong>

      <input class="timepicker form-control" type="text">

    </div>

</div>

<script type="text/javascript">

    $('.timepicker').datetimepicker({

        format: 'HH:mm:ss'

    }); 

</script>  

</body>

</html>

================= 7 ===============================

Laravel 5 - export database table to csv file using LaraCSV
<meta name="description" content="laravel 5 export csv, laravel 5 create csv file example, laravel 5 LaraCSV package example, download csv file laravel tutorial, laravel export table to excel, export csv file in laravel 5, export database table to csv laravel">


//we require to install LaraCSV package by following command:
composer require "usmanhalalit/laracsv:1.*@dev"



routes/web.php


<?php

/*

|--------------------------------------------------------------------------

| Web Routes

|--------------------------------------------------------------------------

|

| Here is where you can register web routes for your application. These

| routes are loaded by the RouteServiceProvider within a group which

| contains the "web" middleware group. Now create something great!

|

*/

Route::get('download-csv', function () {

    $users = \App\User::all();

    $csvExporter = new \Laracsv\Export();

    return $csvExporter->build($users, ['id', 'name', 'email'])->download();

});

If you want to more learn from laracsv then click here : LaraCSV.

https://github.com/usmanhalalit/laracsv

=========================== 8 ===========================

Laravel 5 get client ip address

<meta name="description" content="laravel 5.4 get ip address, get client ip address in laravel 5, laravel get request ip address example, how to get client Ip address in laravel 5.4 with example, laravel 5.4 get ip address from request">


Example 1:

$clientIP = \Request::ip();

Example 2:

$clientIP = \Request::getClientIp(true);

Example 3:

$clientIP = request()->ip();

You can simply use anyone..

=================== 9 ======================

Jquery Fancybox Popup Simple Example

<meta name="description" content="fancybox example, fancybox gallery example, fancybox image gallery example, simple example of fancybox, jquery fancybox popup example, jquery fancybox example cdn, fancybox popup example, fancybox iframe popup example">


//index.html


<!DOCTYPE html>

<html>

<head>

  <title>Fancybox Simple Example</title>

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>

  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css" media="screen">

  <script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script>

</head>

<body>



<h1>Lists Images</h1>



<a class="fancybox" rel="ligthbox" href="http://placehold.it/300x320.png">

    <img class="img-responsive" width="100px" alt="" src="http://placehold.it/320x320" />



</a>

<a class="fancybox" rel="ligthbox" href="http://placehold.it/300x320.png">

    <img class="img-responsive" width="100px" alt="" src="http://placehold.it/320x320" />

</a>



<a class="fancybox" rel="ligthbox" href="http://placehold.it/300x320.png">

    <img class="img-responsive" width="100px" alt="" src="http://placehold.it/320x320" />

</a>



<script type="text/javascript">

  $(".fancybox").fancybox({

      openEffect: "none",

      closeEffect: "none"

  });

</script>



</body>

</html>

If you want to get more information then click here : Fancybox.

================10 =============================

How to use color picker in Laravel 5 ?

<meta name="description" content="laravel 5 color picker example, bootstrap color picker laravel 5 example, How to use bootstrap color picker example in laravel, jquery color picker plugin laravel framework, php bootstrap color picker example, bootstrap laravel colorpicker example">

//your.blade.php


<!DOCTYPE html>

<html>

<head>

  <title>Laravel Bootstrap Colorpicker Example</title>

  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>

  <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/2.5.1/css/bootstrap-colorpicker.min.css" rel="stylesheet">

  <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-colorpicker/2.5.1/js/bootstrap-colorpicker.min.js"></script>  

</head>

<body>

<div class="container">

    <h1>Laravel Bootstrap Colorpicker Example</h1>

    <div id="cp2" class="input-group colorpicker colorpicker-component"> 

      <input type="text" value="#00AABB" class="form-control" /> 

      <span class="input-group-addon"><i></i></span> 

    </div>

</div>

<script type="text/javascript">

  $('.colorpicker').colorpicker();

</script>

</body>

</html>

========================== 11 ==================================

Bootstrap switch toggle example from scratch

<meta name="description" content="bootstrap toggle switch button example, bootstrap toggle switch example, bootstrap toggle example, bootstrap checkbox example, bootstrap checkbox animation example, animated radio button bootstrap, switch toggle bootstrap example, how to apply bootstrap switch">


<!DOCTYPE html>

<html>

<head>

  <title>Bootstrap Toggle Example</title>

  <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>

  <link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">

  <script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>  

</head>

<body>



<div class="container">

    <h1>Bootstrap Toggle Example</h1>

    <strong>Normal Toggle:</strong>

    <br/>

    <input checked data-toggle="toggle" data-onstyle="warning" type="checkbox">

    <br/>

    <strong>Toggle with custom text:</strong>

    <br/>

    <input checked data-toggle="toggle" data-on="Enabled" data-off="Disabled" type="checkbox">

</div>



</body>

</html>

You can get more information about bootstraptoggle plugin from here : Click Here.

========================== 12 ==========================

Laravel 5 Passport - Key path oauth-public.key does not exist or is not readable solved.
<meta name="description" content="laravel key path does not exist or not readable, storage/oauth-private.key does not exist or is not readable, storage oauth public key does not exist or is not readable, key path oauth public key does not exist or is not readable, laravel passport install">


When i was working with laravel passport in my application. In my local system works, but when i upload it to git and my friend pull and run project he got it error as following :

Key path "file://F:\xampp\htdocs\blog\storage\oauth-public.key" does not exist or is not readable

php artisan passport:install

After run bellow command, i found my solution

======================= 13 =========================

How to send json response from controller in codeigniter ?
<meta name="description" content="codeigniter json response, codeigniter json encode array, send json response codeigniter example, get json response php codeigniter, return json response in controller codeigniter example, codeigniter return json header example">


//Json Response


public function returnMyJson() { 
  header('Content-Type: application/json');
  $myArray = ['id'=>12, 'name'=>'Topi'];
  echo json_encode($success);

} 

========================== 14 =========================

Laravel 5 - Change JSON response to request with wrong api token.


//app/Exceptios/Handler.php

<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{

    ......

    ......

    /**

     * Convert an authentication exception into an unauthenticated response.

     *

     * @param  \Illuminate\Http\Request  $request

     * @param  \Illuminate\Auth\AuthenticationException  $exception

     * @return \Illuminate\Http\Response

     */

    protected function unauthenticated($request, AuthenticationException $exception)
    {
        if ($request->expectsJson()) {
            /** return response()->json(['error' => 'Unauthenticated.'], 401); */
                $response = ['status' => 'error','message' => 'You pass invalid token'];
                return response()->json($response);
        }
        return redirect()->guest('login');
    }
}

============================15 ===========================

Laravel check if ajax request or not example

<meta name="description" content="laravel check ajax request, laravel 5.4 request ajax, request ajax laravel 5, laravel $request->ajax() not working, laravel ajax detection example, determine if request is ajax or not in laravel 5, check if request is ajax in laravel 5">


$request->ajax()
Request::ajax()


//Example:
public function myIndex(Request $request)
{
    if($request->ajax()){
        return response()->json(['status'=>'Request is Ajax']);
    }
    return response()->json(['status'=>'Request is Http']);
}


public function myIndex(Request $request)
{
    if(Request::ajax()){
        return response()->json(['status'=>'Request is Ajax']);
    }
    return response()->json(['status'=>'Request is Http']);
}

======================= 16 =============================

How to get all tables lists of database in Laravel 5 ?

<meta name="description" content="laravel get lists on tables, fetch the tables list from database in laravel, get list of all tables from db, fetch the tables list of database in laravel 5, laravel get table name with prefix, laravel get all table names, laravel get tables example">


//As we can get simply all table lists by following sql query:

SHOW TABLES

In Laravel 5 application we will use same above query by using laravel DB select method. So let's see bellow example:

//Example:
$tables = \DB::select('SHOW TABLES');
$tables = array_map('current',$tables);
dd($tables);


//Output:

Array

(
     [0] => ban
     [1] => events
     [2] => log_activities
     [3] => migrations
     [4] => password_resets
     [5] => products
     [6] => tags
     [7] => users
     [8] => youtube_access_tokens
 )


==================== 17====================

How to convert image into base64 string jQuery?


//Example:

<meta name="description" content="convert image into base64 jquery, convert image to base64 string using jquery, convert base64 to image in javascript/jquery, javascript convert file to base64 string, image convert to base64 jquery, convert local image to base64 string jquery">

<!DOCTYPE html>

<html>

<head>

    <title>How to convert image into base64 string jQuery?</title>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

</head>

<body>

<form>

    <input type="file" name="image" onchange="encodeImagetoBase64(this)">

    <button type="submit">Submit</button>

    <a class="link" href=""></a>

</form>

</body>

<script type="text/javascript">

   function encodeImagetoBase64(element) {

      var file = element.files[0];

      var reader = new FileReader();

      reader.onloadend = function() {

        $(".link").attr("href",reader.result);

        $(".link").text(reader.result);

      }

      reader.readAsDataURL(file);

    }

</script>

</html>
========================18=====================

How to insert multiple records in Laravel 5?

<meta name="description" content="laravel eloquent insert multiple rows, laravel eloquent bulk insert, laravel insert multiple records eloquent, laravel eloquent insert multiple rows, laravel insert multiple records, laravel create multiple records">
<meta name="keywords" content="laravel,eloquent,insert,multiple,rows,bulk,records,db,insert,row,example,query">

//Example:



$myItems = [
            ['title'=>'HD Topi','description'=>'It solution stuff'],
            ['title'=>'HD Topi 2','description'=>'It solution stuff 2'],
            ['title'=>'HD Topi 3','description'=>'It solution stuff 3']
        ];


DB::table("items")->insert($myItems);


============
====================
============
Laravel 5.5 - Delete Confirm Bootstrap jQuery Model

Laravel bootstrap delete confirm
Laravel Prompt before deleting Confirm
Laravel 5 - Confirmation before delete record from database example
How to show confirmation prompt while deleting row in Laravel.  
sweet alert delete confirmation laravel
prompt box in laravel
laravel dialog box
laravel view popup
laravel form onsubmit
sweetalert laravel

<meta name="keywords" content="laravel confirmation before delete, php laravel bootstrap delete confirm, laravel bootstrap delete confirmation, laravel confirm before delete, laravel bootstrap delete confirm example, laravel 5 bootstrap delete confirmation example, confirmation before delete item">


jQuery Delete Confirm in Laravel 5.7 Example
    
<h3>HTML for delete button</h3>
<p>If you display below Laravel source code for Confirmation before deleting an item, <b>$products</b> is iterable Data object, its generating likes for all the available each products.</p>
[php]
<h2>show confirmation prompt while deleting row in PHP Laravel.</h2>
@foreach ($products as $product)
    <form class="delete" action="{{ route('product.destroy', $product->id) }}" method="POST">
        <input type="hidden" name="_method" value="DELETE">
        <input type="hidden" name="_token" value="{{ csrf_token() }}" />
        <input type="submit" value="Delete">
    </form>
@endforeach
[/php]

<h3>Javascript to show the confirm prompt</h3>
<p>Place below javaScript in your main Blade page footer area.</p>
[php]
<script>
    $(".delete").on("submit", function(){
        return confirm("Do you want to delete this product?");
    });
</script>
[/php]

<h3>Example 2: Modal delete confirmation Laravel</h3>

<b>HTML delete button</b>
[php]
<a href="javascript:;" data-toggle="modal" onclick="deleteProductData({{$value->id}})" 
data-target="#DeleteModal" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i> Delete</a>
[/php]

<b>Add bootstrap modal</b>
[php]
 <div id="DeleteModal" class="modal fade text-danger" role="dialog">
   <div class="modal-dialog ">
     <!-- Modal content for Laravel bootstrap delete confirm-->
     <form action="" id="productForm" method="post">
         <div class="modal-content">
             <div class="modal-header bg-danger">
                 <button type="button" class="close" data-dismiss="modal">&times;</button>
                 <h4 class="modal-title text-center">DELETE CONFIRMATION</h4>
             </div>
             <div class="modal-body">
             <p>Laravel 5.7 - Confirmation before delete record from database example</p>
                 {{ csrf_field() }}
                 {{ method_field('DELETE') }}
                 <p class="text-center">Are You Sure Want To this Product Delete ?</p>
             </div>
             <div class="modal-footer">
                 <center>
                     <button type="button" class="btn btn-success" data-dismiss="modal">Cancel</button>
                     <button type="submit" name="" class="btn btn-danger" data-dismiss="modal" onclick="ProductFormSubmit()">Yes, Delete</button>
                 </center>
             </div>
         </div>
     </form>
   </div>
  </div>
[/php]

<b>JavaScript Source Code</b>
[php]
  <script type="text/javascript">
     function deleteProductData(id)
     {
         var id = id;
         var url = '{{ route("product.destroy", ":id") }}';
         url = url.replace(':id', id);
         $("#productForm").attr('action', url);
     }

     function ProductFormSubmit()
     {
         $("#productForm").submit();
     }
  </script>
[/php]

=============================== 2 =====================================

http://learninfinity.info/page/6/

sweetalert delete confirm laravel,
delete confirmation in laravel,
Ajax SweetAlert for Live Data Deleting Rows,
laravel confirmation,
sweet alert delete confirmation laravel,
Bootstrap SweetAlert Laravel Confirm dialog box model with yes and no option example
Laravel Confirmation alert Before Delete record with jQuery AJAX


Sweet Alert confirmation before delete in Laravel 5.7

<h3>Step 1: INSTALL LARAVEL 5.6 PROJECT</h3>
<b>Laravel 5.6 Project step by step</b>
<p>first of all You Install Laravel latest version Like 5.6 Project by the typing following simple command.Simple Bootstrap SweetAlert Laravel Confirm dialog box model with yes and no option example</p>
[php]
composer create-project --prefer-dist laravel/laravel Inventory
[/php]

<h3>Step 2: INSTALL SWEET ALERT PACKAGE</h3>
<p>And then, I will install the libs a sweet alert package using PHP composer.</p>
[php]
composer require uxweb/sweet-alert
[/php]
<b>config/app.php</b>
[php]

'providers' => [
   UxWeb\SweetAlert\SweetAlertServiceProvider::class,
];

//After that, register a facade alias to this same this file at the bottom.
‘aliases’ => [
‘Alert’ => UxWeb\SweetAlert\SweetAlert::class,
];
[/php]

<h3>Step 3: CREATE A LARAVEL CONTROLLER</h3>
[php]
php artisan make:controller SweetConfirmAlertController
[/php]
<b>SweetConfirmAlertController.php</b>
<p>It will run command to build the controller file called <b>SweetConfirmAlertController.php</b>.</p>
[php]
//SweetConfirmAlertController.php

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Alert;

class SweetConfirmAlertController extends Controller
{
    public function sweetAllnotification($type)
    {
        switch ($type) {
            case 'message':
                Alert::message('Hello Pakainfo.com','Message');
                break;
            case 'basic':
                Alert::basic('Welcome Pakainfo.com','Basic');
                break;
            case 'info':
                Alert::info('Your Simple Pakainfo.com Mail Sent','Info');
                break;
            case 'success':
                Alert::success('Your message(Pakainfo.com) has been successfully sent', 'Success');
                break;
            case 'error':
                Alert::error('Sorry!, Something went wrong','Error');
                break;
            case 'warning':
                Alert::warning('Please Pakainfo.com your SignIn account','Warning');
                break;
            default:
                break;
        }
        return view('product_list');
    }
}
[/php]

<h5>You Can Download Source Code here..<a href="https://pakainfo.com/laravel-sweet-alert-ajax-crud-tutorial/" title="Laravel Sweet Alert AJAX CRUD Tutorial
" alt="Laravel Sweet Alert AJAX CRUD Tutorial
">Laravel Sweet Alert AJAX CRUD Tutorial
</a></h5>

<h3>Step 4: DEFINE Laravel 5.7 ROUTE</h3>
<b>web.php</b>
<p>We register all route files in a <b>web.php</b> file.</p>
[php]
Route::get('product_list/{type}','SweetConfirmAlertController@sweetAllnotification');
[/php]

<h3>Step 5: CREATE A LARAVEL VIEW FILE</h3>
<b>resources/views/product_list.blade.php</b>
<p>You can create a file in <b>resources/views/product_list.blade.php</b> as well as put this following source code in it.</p>
[php]
<!-- product_list.blade.php -->

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Laravel 5.7 Sweet Alert with Notification Tutorial With Example </title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.0/sweetalert.min.js"></script>
  </head>
  <body>
    <h2>Laravel 5.7 Create custom alert with sweetAlert jQuery</h2>
    @include('sweet::alert')
  </body>
</html>
[/php]

<p>Last stepTo Run the Laravel 5.7 Application by typing following command.</p>
[php]
php artisan serve
[/php]

=============================== 3 ===========================

JavaScript Image Thumbnails Preview Gallery


javascript image gallery with thumbnails,
javascript thumbnail viewer,
css image gallery with thumbnails,
javascript thumbnail gallery,
image viewer js plugin,
Responsive Image Gallery with Thumbnail Carousel,
javascript image gallery with thumbnails,
Sweet Thumbnails Preview Gallery,
CSS Image Thumbnail Viewer in javascript Gallery,
jQuery Thumbnail Image Slider - CSS, JavaScript

Image Thumbnail Viewer,viewer js demo, image viewer js, highslide,javascript,script,text,html,xhtml,head,body,elements,tags,web,webpage,website,html5

<h3>Example 1: JavaScript Image Thumbnail Viewer Tutorial</h3>
<b>index.html</b>
[php]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Simple javascript image gallery with thumbnails | Pakainfo.com</title>
<style>
.liveimgpreview {
width:640px;
height:360px}

.gallerythumb {
width:204px;
margin-right:3px;}

.defaultset {
border:3px solid #000000;}

.selected {
border:3px solid #ff0000;}
</style>
</head>
<body>
<h1>Image Thumbnail Viewer</h1>
<img id="0" class="liveimgpreview defaultset" src="" alt="preview" /><br />
<img id="1" class="gallerythumb defaultset" src="YOUR IMAGES BASE PATH" alt="Product1" onmouseover="liveimgpreview(this)"/>
<img id="2" class="gallerythumb defaultset" src="YOUR IMAGES BASE PATH" alt="Product2" onmouseover="liveimgpreview(this)"/>
<img id="3" class="gallerythumb defaultset" src="YOUR IMAGES BASE PATH" alt="Product3" onmouseover="liveimgpreview(this)"/>
<script>

    var lastImg = 1; //Set initial thumbnail and liveimgpreview
    document.getElementById(0).src = document.getElementById(lastImg).src;
    document.getElementById(lastImg).className = "gallerythumb selected";

    function liveimgpreview(img_param) {
        document.getElementById(lastImg).className = "gallerythumb defaultset";
        img_param.className = "gallerythumb selected";
        document.getElementById(0).src = img_param.src;
        lastImg = img_param.id
    }
</script>
</body>
</html>
[/php]

<h3>Example 2: Simple JavaScript Image Thumbnail Viewer</h3>
[php]
<html>
<head>
    <title>JavaScript Thumbnail Slider</title>
    <style type="text/css">
        .img_container {
            margin: 0 auto;
            width: 191px;
            height: 113px;    
            border: 0;
            overflow: hidden;
            background-color: #FFFFFF;
            webkit-box-shadow: 2px 0 10px rgba(0,0,0,0.2), -2px 0 10px rgba(0,0,0,0.2);
            -moz-box-shadow: 2px 0 10px rgba(0,0,0,0.2), -2px 0 10px rgba(0,0,0,0.2);
            box-shadow: 2px 0 10px rgba(0,0,0,0.2), -2px 0 10px rgba(0,0,0,0.2);    
            border: solid 0px #FFFFFF; 
            border-radius: 4px;
            -moz-border-radius: 4px;
            -webkit-border-radius: 4px;    
            display: block;
        }       
        #gallery {
            margin:0 auto;
            width:200px;
            height:20px;
            position:relative;
            top:-2px;
        }
        .thumbnailSlide {
            text-align:center; 
            width:100%; 
            display:block;
        }
        .thumbnailSlide .btSld {
            margin:3px; 
            padding:4px;
            height:4px;
            text-decoration:none;
            outline:none;
            cursor:pointer; 
            border:solid 2px #FFFFFF;
            border-radius:30px;
            -moz-border-radius:30px; 
            -webkit-border-radius:30px; 
        }
    </style>
</head>
<body>
    <p>Click the little circles below the Product Thumb to slide</p> 
    <div class="img_container">
        <a href="#" rel="">
            <img src="https://www.yourDomainName.com/2019/11/slide/image1.jpg" id="pb1" alt="" border="0" />
        </a>
    </div>
        
    <div id="gallery">
        <div class="thumbnailSlide">
            <input type="button" id="1" class="btSld" 
                style="background-color:#567DD8;"
                onclick="javascript:previewThumb(this.id);" />
            <input type="button" id="2" class="btSld" 
                onclick="javascript:previewThumb(this.id);" />
            <input type="button" id="3" class="btSld" 
                onclick="javascript:previewThumb(this.id);" />
            <input type="button" id="4" class="btSld" 
                onclick="javascript:previewThumb(this.id);" />
        </div>
    </div>
</body>

<script>
    var array_Thumb = new Array();  

    array_Thumb[1] = 'https://www.yourDomainName.com/2019/11/media/Product1.jpg';
    array_Thumb[2] = 'https://www.yourDomainName.com/2019/11/media/Product2.jpg';
    array_Thumb[3] = 'https://www.yourDomainName.com/2019/11/media/Product3.jpg';
    array_Thumb[4] = 'https://www.yourDomainName.com/2019/11/media/Product4.jpg';

    var setThumb;
    var thumbnailCounter = array_Thumb.length - 1;

    var arrThumbCnt = new Array();
    for (setThumb = 1; setThumb < thumbnailCounter + 1; setThumb++) {
        arrThumbCnt[setThumb] = new Image();
        arrThumbCnt[setThumb].src = array_Thumb[setThumb];
    }
        
    function previewThumb(img) {
        document.images.pb1.src = arrThumbCnt[img].src;
            
        for (setThumb = 1; setThumb < thumbnailCounter + 1; setThumb++) {
            
            if (setThumb == img) 
                document.getElementById(setThumb).style.backgroundColor = "#567DD8";
            else 
                document.getElementById(setThumb).style.backgroundColor = "#CCC";
        }
    }
</script>
</html>
[/php]

============================== 4 ==================================