Last active
September 10, 2019 13:25
-
-
Save riccardopirani/2952cc90b908097d8f747cc3abe4ebd4 to your computer and use it in GitHub Desktop.
Load value into table with laravle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use DB; | |
use App\Quotation; | |
use Illuminate\Http\Request; | |
use Illuminate\Foundation\Bus\DispatchesJobs; | |
use Illuminate\Routing\Controller as BaseController; | |
use Illuminate\Foundation\Validation\ValidatesRequests; | |
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; | |
use Mockery\Exception; | |
use App\Console\Commands\Emails; | |
use Session; | |
class Articolo extends Controller | |
{ | |
//Parametri per l'inserimento dell'articolo nel database | |
protected $user, $codicearticolo, $prezzo; | |
//Questa funzione permette l'inserimento di un nuovo articolo all'interno del database | |
public function store(Request $request) | |
{ | |
//Prepraro i parametri per l'inserimento nel db | |
$codicearticolo = $request->input('CodiceArticolo'); | |
$prezzo = $request->input('Prezzo'); | |
$iduser = $request->input('IdUtente'); | |
$data = array('CodiceArticolo' => $codicearticolo, 'Prezzo' => $prezzo, 'IdUtente' => $iduser); | |
//Verifico se esiste già un articolo con lo stesso codice | |
$count = DB::table('Articolo')->where('CodiceArticolo', '=', $codicearticolo)->count(); | |
if ($count == 0) { | |
DB::table('Articolo')->insert($data); | |
//Reindirizzamento alla home | |
} | |
return view('gestionearticoli'); | |
} | |
//Questa funzione permettere di recuperare gli articoli inseriti da un utente | |
public function GetArticoli($IdUtente) | |
{ | |
// if you have a Articolo model. | |
$articoli = App\Articolo::where('IdUtente', '=', $IdUtente)->get(); | |
return view('gestionearticoli', compact('articoli')); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Creo l'utente per la gestione della sessione | |
$user = Session::get("User"); | |
?> | |
<!doctype html> | |
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title>Gestione Articoli | Quote</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- favicon | |
============================================ --> | |
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico"> | |
<!-- Google Fonts | |
============================================ --> | |
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,700,900" rel="stylesheet"> | |
<!-- Bootstrap CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/bootstrap.min.css"> | |
<!-- Bootstrap CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/font-awesome.min.css"> | |
<!-- owl.carousel CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/owl.carousel.css"> | |
<link rel="stylesheet" href="css/owl.theme.css"> | |
<link rel="stylesheet" href="css/owl.transitions.css"> | |
<!-- animate CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/animate.css"> | |
<!-- normalize CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/normalize.css"> | |
<!-- meanmenu icon CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/meanmenu.min.css"> | |
<!-- main CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/main.css"> | |
<!-- educate icon CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/educate-custon-icon.css"> | |
<!-- morrisjs CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/morrisjs/morris.css"> | |
<!-- mCustomScrollbar CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/scrollbar/jquery.mCustomScrollbar.min.css"> | |
<!-- metisMenu CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/metisMenu/metisMenu.min.css"> | |
<link rel="stylesheet" href="css/metisMenu/metisMenu-vertical.css"> | |
<!-- calendar CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/calendar/fullcalendar.min.css"> | |
<link rel="stylesheet" href="css/calendar/fullcalendar.print.min.css"> | |
<!-- style CSS | |
============================================ --> | |
<link rel="stylesheet" href="style.css"> | |
<!-- responsive CSS | |
============================================ --> | |
<link rel="stylesheet" href="css/responsive.css"> | |
<!-- modernizr JS | |
============================================ --> | |
<script src="js/vendor/modernizr-2.8.3.min.js"></script> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> | |
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> | |
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script src="http://getbootstrap.com/dist/js/bootstrap.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
$("#mytable #checkall").click(function() { | |
if ($("#mytable #checkall").is(':checked')) { | |
$("#mytable input[type=checkbox]").each(function() { | |
$(this).prop("checked", true); | |
}); | |
} else { | |
$("#mytable input[type=checkbox]").each(function() { | |
$(this).prop("checked", false); | |
}); | |
} | |
}); | |
$("[data-toggle=tooltip]").tooltip(); | |
}); | |
</script> | |
</head> | |
<body> | |
<!--[if lt IE 8]> | |
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> | |
<![endif]--> | |
<!-- Start Left menu area --> | |
<div class="left-sidebar-pro"> | |
<nav id="sidebar" class=""> | |
<div class="sidebar-header"> | |
<a href="/home"><img class="main-logo" src="img/logo/logo.png" alt="" /></a> | |
<strong><a href="/home""><img src=" img/logo/logosn.png" alt="" /></a></strong> | |
</div> | |
<div class="left-custom-menu-adp-wrap comment-scrollbar"> | |
<nav class="sidebar-nav left-sidebar-menu-pro"> | |
<ul class="metismenu" id="menu1"> | |
<li> | |
<a class="has-arrow" href="/home"> | |
<span class="educate-icon educate-home"></span> | |
<span class="mini-click-non">Home</span> | |
</a> | |
</li> | |
<li> | |
<a title="Landing Page" href="/marcatempo" aria-expanded="false"><span class="educate-icon educate-event icon-wrap sub-icon-mg" aria-hidden="true"></span> <span class="mini-click-non">Marcatempo</span></a> | |
</li> | |
<li> | |
<a class="has-arrow" href="/cantieri" aria-expanded="false"><span class="educate-icon educate-professor icon-wrap"></span> <span class="mini-click-non">Cantieri</span></a> | |
<ul class="submenu-angle" aria-expanded="false"> | |
<li><a title="All Professors" href="/risorseumane"><span class="mini-sub-pro">Risorse Umane</span></a></li> | |
<li><a title="Add Professor" href="/articoli"><span class="mini-sub-pro">Articoli</span></a></li> | |
<li><a title="Edit Professor" href="/kilometri"><span class="mini-sub-pro">Kilometri</span></a></li> | |
<li><a title="Professor Profile" href="/ristoranti"><span class="mini-sub-pro">Ristoranti</span></a></li> | |
</ul> | |
</li> | |
<li> | |
<a title="Landing Page" href="/gestionearticoli" aria-expanded="false"><span class="educate-icon educate-event icon-wrap sub-icon-mg" aria-hidden="true"></span> <span class="mini-click-non">Gestione Articoli</span></a> | |
</li> | |
</ul> | |
</nav> | |
</div> | |
</nav> | |
</div> | |
<!-- End Left menu area --> | |
<!-- Start Welcome area --> | |
<div class="all-content-wrapper"> | |
<div class="container-fluid"> | |
<div class="row"> | |
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | |
<div class="logo-pro"> | |
<a href="index.html"><img class="main-logo" src="img/logo/logo.png" alt="" /></a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="header-advance-area"> | |
<div class="header-top-area"> | |
<div class="container-fluid"> | |
<div class="row"> | |
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | |
<div class="header-top-wraper"> | |
<div class="row"> | |
<div class="col-lg-1 col-md-0 col-sm-1 col-xs-12"> | |
<div class="menu-switcher-pro"> | |
<button type="button" id="sidebarCollapse" class="btn bar-button-pro header-drl-controller-btn btn-info navbar-btn"> | |
<i class="educate-icon educate-nav"></i> | |
</button> | |
</div> | |
</div> | |
<div class="col-lg-6 col-md-7 col-sm-6 col-xs-12"> | |
<div class="header-top-menu tabl-d-n"> | |
<ul class="nav navbar-nav mai-top-nav"> | |
<li class="nav-item"><a href="#" class="nav-link">Home</a> | |
</li> | |
<li class="nav-item"><a href="#" class="nav-link">About</a> | |
</li> | |
<li class="nav-item"><a href="#" class="nav-link">Services</a> | |
</li> | |
<li class="nav-item dropdown res-dis-nn"> | |
<a href="#" data-toggle="dropdown" role="button" aria-expanded="false" class="nav-link dropdown-toggle">Project <span class="angle-down-topmenu"><i class="fa fa-angle-down"></i></span></a> | |
<div role="menu" class="dropdown-menu animated zoomIn"> | |
<a href="#" class="dropdown-item">Documentation</a> | |
<a href="#" class="dropdown-item">Expert Backend</a> | |
<a href="#" class="dropdown-item">Expert FrontEnd</a> | |
<a href="#" class="dropdown-item">Contact Support</a> | |
</div> | |
</li> | |
<li class="nav-item"><a href="#" class="nav-link">Support</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
<div class="col-lg-5 col-md-5 col-sm-12 col-xs-12"> | |
<div class="header-right-info"> | |
<ul class="nav navbar-nav mai-top-nav header-right-menu"> | |
<li class="nav-item dropdown"> | |
<a href="#" data-toggle="dropdown" role="button" aria-expanded="false" class="nav-link dropdown-toggle"><i class="educate-icon educate-message edu-chat-pro" aria-hidden="true"></i><span class="indicator-ms"></span></a> | |
<div role="menu" class="author-message-top dropdown-menu animated zoomIn"> | |
<div class="message-single-top"> | |
<h1>Message</h1> | |
</div> | |
<ul class="message-menu"> | |
<li> | |
<a href="#"> | |
<div class="message-img"> | |
<img src="img/contact/1.jpg" alt=""> | |
</div> | |
<div class="message-content"> | |
<span class="message-date">16 Sept</span> | |
<h2>Advanda Cro</h2> | |
<p>Please done this project as soon possible.</p> | |
</div> | |
</a> | |
</li> | |
<li> | |
<a href="#"> | |
<div class="message-img"> | |
<img src="img/contact/4.jpg" alt=""> | |
</div> | |
<div class="message-content"> | |
<span class="message-date">16 Sept</span> | |
<h2>Sulaiman din</h2> | |
<p>Please done this project as soon possible.</p> | |
</div> | |
</a> | |
</li> | |
<li> | |
<a href="#"> | |
<div class="message-img"> | |
<img src="img/contact/3.jpg" alt=""> | |
</div> | |
<div class="message-content"> | |
<span class="message-date">16 Sept</span> | |
<h2>Victor Jara</h2> | |
<p>Please done this project as soon possible.</p> | |
</div> | |
</a> | |
</li> | |
<li> | |
<a href="#"> | |
<div class="message-img"> | |
<img src="img/contact/2.jpg" alt=""> | |
</div> | |
<div class="message-content"> | |
<span class="message-date">16 Sept</span> | |
<h2>Victor Jara</h2> | |
<p>Please done this project as soon possible.</p> | |
</div> | |
</a> | |
</li> | |
</ul> | |
<div class="message-view"> | |
<a href="#">View All Messages</a> | |
</div> | |
</div> | |
</li> | |
<li class="nav-item"><a href="#" data-toggle="dropdown" role="button" aria-expanded="false" class="nav-link dropdown-toggle"><i class="educate-icon educate-bell" aria-hidden="true"></i><span class="indicator-nt"></span></a> | |
<div role="menu" class="notification-author dropdown-menu animated zoomIn"> | |
<div class="notification-single-top"> | |
<h1>Notifications</h1> | |
</div> | |
<ul class="notification-menu"> | |
<li> | |
<a href="#"> | |
<div class="notification-icon"> | |
<i class="educate-icon educate-checked edu-checked-pro admin-check-pro" aria-hidden="true"></i> | |
</div> | |
<div class="notification-content"> | |
<span class="notification-date">16 Sept</span> | |
<h2>Advanda Cro</h2> | |
<p>Please done this project as soon possible.</p> | |
</div> | |
</a> | |
</li> | |
<li> | |
<a href="#"> | |
<div class="notification-icon"> | |
<i class="fa fa-cloud edu-cloud-computing-down" aria-hidden="true"></i> | |
</div> | |
<div class="notification-content"> | |
<span class="notification-date">16 Sept</span> | |
<h2>Sulaiman din</h2> | |
<p>Please done this project as soon possible.</p> | |
</div> | |
</a> | |
</li> | |
<li> | |
<a href="#"> | |
<div class="notification-icon"> | |
<i class="fa fa-eraser edu-shield" aria-hidden="true"></i> | |
</div> | |
<div class="notification-content"> | |
<span class="notification-date">16 Sept</span> | |
<h2>Victor Jara</h2> | |
<p>Please done this project as soon possible.</p> | |
</div> | |
</a> | |
</li> | |
<li> | |
<a href="#"> | |
<div class="notification-icon"> | |
<i class="fa fa-line-chart edu-analytics-arrow" aria-hidden="true"></i> | |
</div> | |
<div class="notification-content"> | |
<span class="notification-date">16 Sept</span> | |
<h2>Victor Jara</h2> | |
<p>Please done this project as soon possible.</p> | |
</div> | |
</a> | |
</li> | |
</ul> | |
<div class="notification-view"> | |
<a href="#">View All Notification</a> | |
</div> | |
</div> | |
</li> | |
<li class="nav-item"> | |
<a href="#" data-toggle="dropdown" role="button" aria-expanded="false" class="nav-link dropdown-toggle"> | |
<!--<img src="img/product/pro4.jpg" alt="" />--> | |
<span class="admin-name"><?php echo $user->GetName(); ?> </span> | |
<i class="fa fa-angle-down edu-icon edu-down-arrow"></i> | |
</a> | |
<ul role="menu" class="dropdown-header-top author-log dropdown-menu animated zoomIn"> | |
<li><a href="#"><span class="edu-icon edu-home-admin author-log-ic"></span>My Account</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- Mobile Menu start --> | |
<div class="mobile-menu-area"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | |
<div class="mobile-menu"> | |
<nav id="dropdown"> | |
<ul class="mobile-menu-nav"> | |
<li><a data-toggle="collapse" data-target="#Charts" href="#">Home <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul class="collapse dropdown-header-top"> | |
<li><a href="index.html">Dashboard v.1</a></li> | |
<li><a href="index-1.html">Dashboard v.2</a></li> | |
<li><a href="index-3.html">Dashboard v.3</a></li> | |
<li><a href="analytics.html">Analytics</a></li> | |
<li><a href="widgets.html">Widgets</a></li> | |
</ul> | |
</li> | |
<li><a href="events.html">Event</a></li> | |
<li><a data-toggle="collapse" data-target="#demoevent" href="#">Professors <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="demoevent" class="collapse dropdown-header-top"> | |
<li><a href="all-professors.html">All Professors</a> | |
</li> | |
<li><a href="add-professor.html">Add Professor</a> | |
</li> | |
<li><a href="edit-professor.html">Edit Professor</a> | |
</li> | |
<li><a href="professor-profile.html">Professor Profile</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#democrou" href="#">Courses <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="democrou" class="collapse dropdown-header-top"> | |
<li><a href="all-courses.html">All Courses</a> | |
</li> | |
<li><a href="add-course.html">Add Course</a> | |
</li> | |
<li><a href="edit-course.html">Edit Course</a> | |
</li> | |
<li><a href="course-profile.html">Courses Info</a> | |
</li> | |
<li><a href="course-payment.html">Courses Payment</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#demolibra" href="#">Library <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="demolibra" class="collapse dropdown-header-top"> | |
<li><a href="library-assets.html">Library Assets</a> | |
</li> | |
<li><a href="add-library-assets.html">Add Library Asset</a> | |
</li> | |
<li><a href="edit-library-assets.html">Edit Library Asset</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#demodepart" href="#">Departments <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="demodepart" class="collapse dropdown-header-top"> | |
<li><a href="departments.html">Departments List</a> | |
</li> | |
<li><a href="add-department.html">Add Departments</a> | |
</li> | |
<li><a href="edit-department.html">Edit Departments</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#demo" href="#">Mailbox <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="demo" class="collapse dropdown-header-top"> | |
<li><a href="mailbox.html">Inbox</a> | |
</li> | |
<li><a href="mailbox-view.html">View Mail</a> | |
</li> | |
<li><a href="mailbox-compose.html">Compose Mail</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#Miscellaneousmob" href="#">Interface <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="Miscellaneousmob" class="collapse dropdown-header-top"> | |
<li><a href="google-map.html">Google Map</a> | |
</li> | |
<li><a href="data-maps.html">Data Maps</a> | |
</li> | |
<li><a href="pdf-viewer.html">Pdf Viewer</a> | |
</li> | |
<li><a href="x-editable.html">X-Editable</a> | |
</li> | |
<li><a href="code-editor.html">Code Editor</a> | |
</li> | |
<li><a href="tree-view.html">Tree View</a> | |
</li> | |
<li><a href="preloader.html">Preloader</a> | |
</li> | |
<li><a href="images-cropper.html">Images Cropper</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#Chartsmob" href="#">Charts <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="Chartsmob" class="collapse dropdown-header-top"> | |
<li><a href="bar-charts.html">Bar Charts</a> | |
</li> | |
<li><a href="line-charts.html">Line Charts</a> | |
</li> | |
<li><a href="area-charts.html">Area Charts</a> | |
</li> | |
<li><a href="rounded-chart.html">Rounded Charts</a> | |
</li> | |
<li><a href="c3.html">C3 Charts</a> | |
</li> | |
<li><a href="sparkline.html">Sparkline Charts</a> | |
</li> | |
<li><a href="peity.html">Peity Charts</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#Tablesmob" href="#">Tables <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="Tablesmob" class="collapse dropdown-header-top"> | |
<li><a href="static-table.html">Static Table</a> | |
</li> | |
<li><a href="data-table.html">Data Table</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#formsmob" href="#">Forms <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="formsmob" class="collapse dropdown-header-top"> | |
<li><a href="basic-form-element.html">Basic Form Elements</a> | |
</li> | |
<li><a href="advance-form-element.html">Advanced Form Elements</a> | |
</li> | |
<li><a href="password-meter.html">Password Meter</a> | |
</li> | |
<li><a href="multi-upload.html">Multi Upload</a> | |
</li> | |
<li><a href="tinymc.html">Text Editor</a> | |
</li> | |
<li><a href="dual-list-box.html">Dual List Box</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#Appviewsmob" href="#">App views <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="Appviewsmob" class="collapse dropdown-header-top"> | |
<li><a href="basic-form-element.html">Basic Form Elements</a> | |
</li> | |
<li><a href="advance-form-element.html">Advanced Form Elements</a> | |
</li> | |
<li><a href="password-meter.html">Password Meter</a> | |
</li> | |
<li><a href="multi-upload.html">Multi Upload</a> | |
</li> | |
<li><a href="tinymc.html">Text Editor</a> | |
</li> | |
<li><a href="dual-list-box.html">Dual List Box</a> | |
</li> | |
</ul> | |
</li> | |
<li><a data-toggle="collapse" data-target="#Pagemob" href="#">Pages <span class="admin-project-icon edu-icon edu-down-arrow"></span></a> | |
<ul id="Pagemob" class="collapse dropdown-header-top"> | |
<li><a href="login.html">Login</a> | |
</li> | |
<li><a href="register.html">Register</a> | |
</li> | |
<li><a href="lock.html">Lock</a> | |
</li> | |
<li><a href="password-recovery.html">Password Recovery</a> | |
</li> | |
<li><a href="404.html">404 Page</a></li> | |
<li><a href="500.html">500 Page</a></li> | |
</ul> | |
</li> | |
</ul> | |
</nav> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- Mobile Menu end --> | |
<div class="breadcome-area"> | |
<br> | |
<br> | |
</div> | |
</div> | |
<div class="analytics-sparkle-area"> | |
<!-- Form per inserimento articolo --> | |
<form action="/inserimentoarticolo" method="POST"> | |
Codice Articolo: <input type="text" name="CodiceArticolo" value=""> | |
Prezzo: <input type="text" name="Prezzo" value=""> | |
<input type="hidden" name="IdUtente" value='<?php echo $user->GetIdUtente(); ?>'> | |
<input type="submit" value="Inserisci"> | |
</form> | |
<!-- Fine form inserimento articolo--> | |
</div> | |
<div class="product-sales-area mg-tb-30"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<h4>Articoli</h4> | |
<div class="table-responsive"> | |
<table id="mytable" class="table table-bordred table-striped"> | |
<thead> | |
<th>IdArticolo</th> | |
<th>Codice Articolo</th> | |
<th>Prezzo</th> | |
<th>Modifica</th> | |
<th>Elimina</th> | |
</thead> | |
<tbody> | |
@forelse ($articoli as $art) | |
<tr> | |
<td>{{$art->IdArticolo}}</td> | |
<td>{{$art->CodiceArticolo}}</td> | |
<td>{{$art->Prezzo}}</td> | |
<td> | |
<p data-placement='top' data-toggle='tooltip' title='Edit'> | |
<button class='btn btn-primary btn-xs' data-title='Edit' data-toggle='modal' data-target='#edit'><span class='glyphicon glyphicon-pencil'></span></button> | |
</p> | |
</td> | |
<td> | |
<p data-placement='top' data-toggle='tooltip' title='Delete'> | |
<button class='btn btn-danger btn-xs' data-title='Delete' data-toggle='modal' data-target='#delete'><span class='glyphicon glyphicon-trash'></span></button> | |
</p> | |
</td> | |
</tr> | |
@empty | |
<tr> | |
<td colspan="50">No Results</td> | |
</tr> | |
@endforelse | |
</tbody> | |
</table> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="modal fade" id="edit" tabindex="-1" role="dialog" aria-labelledby="edit" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button> | |
<h4 class="modal-title custom_align" id="Heading">Edit Your Detail</h4> | |
</div> | |
<div class="modal-body"> | |
<div class="form-group"> | |
<input class="form-control " type="text" placeholder="Mohsin"> | |
</div> | |
<div class="form-group"> | |
<input class="form-control " type="text" placeholder="Irshad"> | |
</div> | |
<div class="form-group"> | |
<textarea rows="2" class="form-control" placeholder="CB 106/107 Street # 11 Wah Cantt Islamabad Pakistan"></textarea> | |
</div> | |
</div> | |
<div class="modal-footer "> | |
<button type="button" class="btn btn-warning btn-lg" style="width: 100%;"><span class="glyphicon glyphicon-ok-sign"></span> Update</button> | |
</div> | |
</div> | |
<!-- /.modal-content --> | |
</div> | |
<!-- /.modal-dialog --> | |
</div> | |
<div class="modal fade" id="delete" tabindex="-1" role="dialog" aria-labelledby="edit" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button> | |
<h4 class="modal-title custom_align" id="Heading">Delete this entry</h4> | |
</div> | |
<div class="modal-body"> | |
<div class="alert alert-danger"><span class="glyphicon glyphicon-warning-sign"></span> Are you sure you want to delete this Record?</div> | |
</div> | |
<div class="modal-footer "> | |
<button type="button" class="btn btn-success"><span class="glyphicon glyphicon-ok-sign"></span> Yes</button> | |
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> No</button> | |
</div> | |
</div> | |
<!-- /.modal-content --> | |
</div> | |
<!-- /.modal-dialog --> | |
</div> | |
</div> | |
<div class="footer-copyright-area"> | |
<div class="container-fluid"> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="footer-copy-right"> | |
<p>Copyright © 2019. All rights reserved. Template by <a href="https://www.viewsoftware.it/">ViewSoftware</a></p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- jquery | |
============================================ --> | |
<script src="js/vendor/jquery-1.12.4.min.js"></script> | |
<!-- bootstrap JS | |
============================================ --> | |
<script src="js/bootstrap.min.js"></script> | |
<!-- wow JS | |
============================================ --> | |
<script src="js/wow.min.js"></script> | |
<!-- price-slider JS | |
============================================ --> | |
<script src="js/jquery-price-slider.js"></script> | |
<!-- meanmenu JS | |
============================================ --> | |
<script src="js/jquery.meanmenu.js"></script> | |
<!-- owl.carousel JS | |
============================================ --> | |
<script src="js/owl.carousel.min.js"></script> | |
<!-- sticky JS | |
============================================ --> | |
<script src="js/jquery.sticky.js"></script> | |
<!-- scrollUp JS | |
============================================ --> | |
<script src="js/jquery.scrollUp.min.js"></script> | |
<!-- counterup JS | |
============================================ --> | |
<script src="js/counterup/jquery.counterup.min.js"></script> | |
<script src="js/counterup/waypoints.min.js"></script> | |
<script src="js/counterup/counterup-active.js"></script> | |
<!-- mCustomScrollbar JS | |
============================================ --> | |
<script src="js/scrollbar/jquery.mCustomScrollbar.concat.min.js"></script> | |
<script src="js/scrollbar/mCustomScrollbar-active.js"></script> | |
<!-- metisMenu JS | |
============================================ --> | |
<script src="js/metisMenu/metisMenu.min.js"></script> | |
<script src="js/metisMenu/metisMenu-active.js"></script> | |
<!-- morrisjs JS | |
============================================ --> | |
<script src="js/morrisjs/raphael-min.js"></script> | |
<script src="js/morrisjs/morris.js"></script> | |
<script src="js/morrisjs/morris-active.js"></script> | |
<!-- morrisjs JS | |
============================================ --> | |
<script src="js/sparkline/jquery.sparkline.min.js"></script> | |
<script src="js/sparkline/jquery.charts-sparkline.js"></script> | |
<script src="js/sparkline/sparkline-active.js"></script> | |
<!-- calendar JS | |
============================================ --> | |
<script src="js/calendar/moment.min.js"></script> | |
<script src="js/calendar/fullcalendar.min.js"></script> | |
<script src="js/calendar/fullcalendar-active.js"></script> | |
<!-- plugins JS | |
============================================ --> | |
<script src="js/plugins.js"></script> | |
<!-- main JS | |
============================================ --> | |
<script src="js/main.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Gestione Articoli Router | |
Route::get('/gestionearticoli', function () { | |
return view('gestionearticoli'); | |
}); | |
//Recupero articoli inseriti dall'utente | |
Route::get('/recuperoarticoliutente/{IdUtente}', 'Articolo@GetArticoli'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment