@extends('adminlte::page') @section('content')
<?php Fun::lang() ?>
<div class="title-page">
    <div class="page-bar">
        <ul class="page-breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li><a href="#">Construction</a></li>
            <li><a href="#">Set Up Information</a></li>
            <li><a href="#">Contractor</a></li>
            <li><a href="#">Create</a></li>
        </ul>
    </div>
</div>
<div class="page">
    <div class="top-content">
        <div class="row">
            <div class="col-sm-12 col-xs-12">
                <div class="title-page">
                    <div class="pull-left">
                        <h3>Create Contractor</h3>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12 col-xs-12">

            <div class="form-wrapper">
                {!! Form::open(array('route' => 'construction-constructor.store','method'=>'POST', 'enctype'=>'multipart/form-data')) !!}
                <div class="row">
                    <div class="form-group col-sm-4 col-xs-12">

                        <label class="required">Name</label>
                        {!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control','required')) !!}

                    </div>
                    <div class="form-group col-sm-4 col-xs-12">
                        
                        <label >Gender</label>
                        {!! Form::select('gender',array(''=>'Please Select','1'=>'Male','2'=>'Female') ,null, array('class' => 'form-control select2')) !!}

                    </div>
                    <div class="form-group col-sm-4 col-xs-12">

                        <label class="required">Phone</label>
                        {!! Form::text('phone', null, array('placeholder' => 'Phone','class' => 'form-control','required')) !!}
                    </div>
                    <div class="form-group col-sm-4 col-xs-12">

                        <label>Date of Birth</label>
                        {!! Form::text('date_of_birth', null, array('placeholder' => 'Date of Birth','class' => 'form-control date_picker')) !!}
                    </div>
                    <div class="form-group col-sm-4 col-xs-12">

                        <label>ID Card</label>
                        {!! Form::text('id_card', null, array('placeholder' => 'ID Card','class' => 'form-control ')) !!}

                    </div>
                    <div class="form-group col-sm-4 col-xs-12">

                        <label >Company Name</label>
                        {!! Form::text('company_name', null, array('placeholder' => 'Company Name','class' => 'form-control ')) !!}

                    </div>
                    <div class="form-group col-sm-4 col-xs-12">

                        <label >Skill</label>
                        {!! Form::text('skill', null, array('placeholder' => 'Skill','class' => 'form-control ')) !!}

                    </div>
                    <div class="form-group col-sm-4 col-xs-12">

                        <label >Position</label>
                        {!! Form::text('position', null, array('placeholder' => 'Position','class' => 'form-control ')) !!}

                    </div>
                    <div class="form-group col-sm-4 col-xs-12">

                        <label class="required">Type</label>
                        {!! Form::select('type',array('0'=>'Contract','1'=>'Freeland'), null, array('class' => 'form-control select2','required')) !!}

                    </div>
                    {{-- <div class="form-group col-sm-4 col-xs-12">
                        <label class="required">Project</label>
                        {!! Form::select('project_id',$projects, null, array('class' => 'form-control select2','required')) !!}
                    </div> --}}
                    <div class="form-group col-sm-4 col-xs-12">

                        <label>Address</label>
                        {!! Form::textarea('address', null, array('placeholder' => 'Address','class' => 'form-control','rows'=>'2')) !!}

                    </div>

                    <div class="form-group col-sm-4 col-xs-12">

                        <label>Description</label>
                        {!! Form::textarea('description', null, array('placeholder' => 'Description','class' => 'form-control','rows'=>'2')) !!}

                    </div>

                    <div class="col-sm-12 col-xs-12">
                        <div class="form-group">
                            <button type="submit" class="button_sm button_primary pull-right"><span class="fa fa-save"></span> Save</button>
                            <button type="button" onClick="javascript:history.go(-1)" class="button_sm button_warning pull-right">
                                <span class=" fa fa-arrow-circle-left"></span> Back</button>
                        </div>
                    </div>
                </div>

                {!! Form::close() !!}
            </div>
        </div>
    </div>
</div>
@endsection @section('js')
<script type="text/javascript" src="{{asset('assets/controller/location.js')}}"></script>
@endsection