 <?php $__env->startSection('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="#">Edit</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>Edit Contractor</h3>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12 col-xs-12">

            <div class="form-wrapper">
                <?php echo Form::model($constructor, ['method' => 'PATCH','route' => ['construction-constructor.update', $constructor->id],'enctype'=>'multipart/form-data']); ?>

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

                        <label class="required">Name</label>
                        <?php echo 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>
                        <?php echo 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>
                        <?php echo 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>
                        <?php echo Form::text('date_of_birth',(!empty($constructor->date_of_birth)?date("d-m-Y",strtotime($constructor->date_of_birth)):""), 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>
                        <?php echo 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>
                        <?php echo 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>
                        <?php echo Form::text('skill', null, array('placeholder' => 'Skill','class' => 'form-control ')); ?>


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

                        <label >Position</label>
                        <?php echo 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>
                        <?php echo 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>Address</label>
                        <?php echo 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>
                        <?php echo 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>

                <?php echo Form::close(); ?>

            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>