This file contains 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
@extends('template') | |
@section('main') | |
<div class="container"> | |
<h1>Atualização de cliente</h1> | |
<hr> | |
@if(session('success')) | |
<div class="alert alert-success"> | |
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> |
This file contains 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
@extends('template') | |
@section('main') | |
<div class="container"> | |
<h1>Novo cliente</h1> | |
<hr> | |
<form action="" method="post"> | |
<div class="row"> |
This file contains 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
@extends('template') | |
@section('main') | |
<div class="container"> | |
<h1>Clientes cadastrados</h1> | |
<hr> | |
<table class="table table-bordered"> | |
<thead> | |
<tr> |
This file contains 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
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<base href="{{ URL::to('/') }}"> | |
<title>Gerenciamento de clientes</title> |
This file contains 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
CREATE TABLE IF NOT EXISTS `clients` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`first_name` varchar(100) DEFAULT NULL, | |
`last_name` varchar(100) DEFAULT NULL, | |
`email` varchar(100) DEFAULT NULL, | |
`gender` enum('M','F') DEFAULT NULL, | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1; |