@extends('admins.admin_home')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-12 col-md-offset-0">
            <div class="panel panel-default">
            <div class="panel-heading">Tambah Karyawan</div>	
				<div class="panel-body">
                    @if(!empty($errors->first()))
                        <div class='alert alert-warning'>{!! $errors->first() !!}</div>
					@endif
                        <form action="{{route('karyawan.store')}}" method="post">
                            {{csrf_field()}}
                            <div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
                                <input type="text" name="nama" class="form-control" placeholder="Nama">
                                {!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
                            </div>
                            <div class="form-group{{ $errors->has('pekerjaan') ? ' has-error' : '' }}">
                                <input type="text" name="pekerjaan" class="form-control" placeholder="Pekerjaan">
                                {!! $errors->first('pekerjaan', '<p class="help-block">:message</p>') !!}
                            </div>
                            <div class="form-group{{ $errors->has('notlp') ? ' has-error' : '' }}">
                                <input type="text" name="notlp" class="form-control" placeholder="Nomor Handphone">
                                {!! $errors->first('notlp', '<p class="help-block">:message</p>') !!}
                            </div>
                            <div class="form-group">
                                <input type="submit" class="btn btn-primary" value="Simpan">
                            </div>
                        </form>
				</div>
			</div>
		</div>
	</div>
</div>
@endsection