@extends('backend.layouts.master')
@section('title')
    Worker Tracking Page
@endsection
@section('css')

@endsection
<!-- page content -->
@section('content')
    <div class="right_col" role="main">
        <div class="">
            <div class="clearfix"></div>
            @if(Session::has('success'))
                <div class="alert alert-success">
                    {{ Session::get('success') }}
                </div>
            @endif
            @if(Session::has('error_message'))
                <div class="alert alert-danger">
                    {{ Session::get('error') }}
                </div>
            @endif
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_title">
                            <h2>Worker
                                 <a href="{{route('worker.list')}}" class="btn btn-xs btn-primary">View Worker</a>
                            </h2>
                            <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                       aria-expanded="false"><i class="fa fa-wrench"></i></a>
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="#">Settings 1</a>
                                        </li>
                                        <li><a href="#">Settings 2</a>
                                        </li>
                                    </ul>
                                </li>
                                <li><a class="close-link"><i class="fa fa-close"></i></a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <div class="x_content">
                           <div class="row">
                               <div class="col-sm-3"></div>
                               <div class="col-sm-6">
                                    <form action="{{route('worker.store')}}" method="post">
                                        {{ csrf_field()}}
                                        <div class="form-group">
                                            <label for="party_name">Worker Name</label>
                                            <input type="text" class="form-control" id="worker_name" name="worker_name" value="{{old('worker_name')}}" placeholder="Enter Worker Name">
                                            <span class="error"><b>
                                                 @if($errors->has('worker_name'))
                                                      {{$errors->first('worker_name')}}
                                                 @endif</b></span>
                                        </div>
                                         <div class="form-group">
                                            <label for="party_name">Worker Phone</label>
                                            <input type="text" class="form-control" id="worker_phone" name="worker_phone" value="{{old('worker_phone')}}" placeholder="Enter Worker Phone">
                                            <span class="error"><b>
                                                 @if($errors->has('worker_phone'))
                                                      {{$errors->first('worker_phone')}}
                                                 @endif</b></span>
                                        </div>
                                         <div class="form-group">
                                            <label for="party_name">Worker Email</label>
                                            <input type="text" class="form-control" id="worker_email" name="worker_email" value="{{old('worker_email')}}" placeholder="Enter Worker Email">
                                            <span class="error"><b>
                                                 @if($errors->has('worker_name'))
                                                      {{$errors->first('worker_email')}}
                                                 @endif</b></span>
                                        </div>
                                         <div class="form-group">
                                            <label for="party_name">Worker Address</label>
                                            <input type="text" class="form-control" id="worker_address" name="worker_address" value="{{old('worker_address')}}" placeholder="Enter Worker Address">
                                            <span class="error"><b>
                                                 @if($errors->has('worker_address'))
                                                      {{$errors->first('worker_address')}}
                                                 @endif</b></span>
                                        </div>
                                        <div class="form-group">
                                            <label for="party_name">Previous Due</label>
                                            <input type="number" class="form-control" id="previous_due" name="previous_due" value="{{old('previous_due')}}" placeholder="Previous Due">
                                            <span class="error"><b>{{$errors->first('previous_due')}}</b></span>
                                        </div>
                                        <!-- /.box-body -->
                                        <div class="box-footer">
                                            <button type="submit" name="btnSave" class="btn btn-primary btn-block" >Worker Enty Save</button>
                                        </div>
                                    </form>
                               </div>
                               <div class="col-sm-3"></div>
                           </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /page content -->
@endsection
@section('script')

@endsection