@extends('admin.layouts.app')
@section('header-script')
    @include('admin.layouts.forms-header-script')
@endsection

    @section('content')
        <div class="row">
            <div class="col-sm-12">
                <div class="btn-group pull-right m-t-25">
                    <a  href="{{URL::to('admin/teams/list')}}"  class="btn btn-custom  waves-effect waves-light"  >All teams <span class="m-l-5"><i class="fa fa-list" aria-hidden="true"></i></span></a>
                </div>
                <h4 class="page-title">Create teams</h4>
                @foreach (['danger', 'warning', 'success', 'info'] as $key)
                    @if(Session::has($key))
                        <p class="alert alert-{{ $key }}"><i class="fa fa-info-circle" style="color: #fe6271;"></i> {{ Session::get($key) }}</p>
                    @endif
                @endforeach
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="card-box">
                    <h4 class="header-title m-t-0 m-b-30">Create teams</h4>
                    <div class="row">
                        <div class="col-lg-6">
                            <div class="p-20">
                                {!! Form::open(['url' => 'admin/teams/store','class'=>'form-horizontal','enctype'=>'multipart/form-data','files'=>true ]) !!}
                                {{ csrf_field() }}
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Name <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="name"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Organization Name <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="organization_name"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Designation <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="designation"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Address<i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="address"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Status <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <input class="form-control" name="status"  type="text" required=""/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">Images <i style="color: red;">*</i></label>
                                        <div class="col-lg-10">
                                            <small   class="form-text text-muted">Image Width 1050px &amp; Height 300px</small>
                                            <input type="file" name="image" id="filer_input2" required="" />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label"></label>
                                        <div class="col-lg-10">
                                            <button type="submit" class="btn btn-custom btn-bordred waves-effect waves-light w-md m-b-5 pull-left"><i class="fa  fa-save"></i> Save</button>
                                        </div>
                                    </div>
                                {!! Form::close() !!}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    @endsection

 @section('footer-script')
     @include('admin.layouts.form-elements-footer-script')
 @endsection
 