Created
December 26, 2016 16:50
-
-
Save PHPauloReis/36351db5041d3b031a83508851c55834 to your computer and use it in GitHub Desktop.
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> | |
<span class="sr-only">Sucesso:</span> | |
{{ session('success') }} | |
</div> | |
@endif | |
@if(session('errors')) | |
<div class="alert alert-danger"> | |
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> | |
<span class="sr-only">Error:</span> | |
Algo deu errado: | |
<ul> | |
@foreach(session('errors')->all() as $error) | |
<li>{{ $error }}</li> | |
@endforeach | |
</ul> | |
</div> | |
@endif | |
<form action="client/update/{{ $client->id }}" method="post"> | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="form-group"> | |
<label for="first_name">Primeiro nome</label> | |
<input type="text" class="form-control" name="first_name" placeholder="Nome do cliente" value="{{ $client->first_name }}"> | |
</div> | |
</div> | |
<div class="col-md-6"> | |
<div class="form-group"> | |
<label for="last_name">Último nome</label> | |
<input type="text" class="form-control" name="last_name" placeholder="Sobrenome" value="{{ $client->last_name }}"> | |
</div> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="form-group"> | |
<label for="email">E-mail</label> | |
<input type="email" class="form-control" name="email" placeholder="E-mail do cliente" value="{{ $client->email }}"> | |
</div> | |
</div> | |
<div class="col-md-6"> | |
<div class="form-group"> | |
<label for="gender">Sexo</label> | |
<select class="form-control" name="gender"> | |
<option value="">- - -</option> | |
<option value="M">Masculino</option> | |
<option value="F">Feminino</option> | |
</select> | |
</div> | |
</div> | |
</div> | |
<input type="hidden" name="_token" value="{{ csrf_token() }}"> | |
<button type="submit" class="btn btn-success">Atualizar</button> | |
</form> | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment