@extends('layout')
@section('judul')
Buat Client
@endsection

@section('konten')
<form action="{{url('client')}}" method ="post">
{{ csrf_field() }}

<label>Image</label>
<div class="form-group{{ ($errors->has('image')) ? $errors->first('image') : '' }}">
          <input type="file" name="image">
          {!! $errors->first('image','<p class="help-block">:message</p>') !!}
        </div>

<label>Fullnames</label>
<div class="form-group{{ ($errors->has('fullnames')) ? $errors->first('fullnames') : '' }}">
<input type="text" name="fullnames" class="form-control">
 {!! $errors->first('fullnames','<p class="help-block">:message</p>') !!}
 </div>

<label>Sex</label>
<div>
          <input type="radio" name="sex" value="male" checked> Male<br>
          <input type="radio" name="sex" value="female"> Female<br>
          {!! $errors->first('sex','<p class="help-block">:message</p>') !!}
        </div>

<label>Birthdate</label>
<div class="form-group{{ ($errors->has('birthdate')) ? $errors->first('fullnames') : '' }}">
<input type="date" name="birthdate" class="form-control">
{!! $errors->first('birthdate','<p class="help-block">:message</p>') !!}
</div>

<label>Idcard</label>
 <div class="form-group{{ ($errors->has('idcard')) ? $errors->first('birthdate') : '' }}">
<input type="text" name="idcard" class="form-control">
{!! $errors->first('idcard','<p class="help-block">:message</p>') !!}
</div>

<label>Province</label>
<div class="form-group{{ ($errors->has('province')) ? $errors->first('idcard') : '' }}">
<input type="text" name="province" class="form-control">
{!! $errors->first('province','<p class="help-block">:message</p>') !!}
</div>

<label>District</label>
<div class="form-group{{ ($errors->has('district')) ? $errors->first('province') : '' }}">
	<input type="text" name="district" class="form-control">
{!! $errors->first('district','<p class="help-block">:message</p>') !!}
</div>

<label>Sector</label>
<div class="form-group{{ ($errors->has('sector')) ? $errors->first('district') : '' }}">
	<input type="text" name="sector" class="form-control">
	{!! $errors->first('sector','<p class="help-block">:message</p>') !!}
</div>

<input type="submit" class="btn btn-success" value="Simpan">
</form>
@endsection