@extends('admin.layouts.app')

@section('content')
<h2 class="mb-3">{{ awtTrans('اضافة شريك جديد') }} </h2>
<div class="row">
    <div class="col-lg-12">
        {!! Form::open(['method' => 'POST', 'route' => 'admin.partners.store', 'files'=>true , 'id' => 'form-partner']) !!}

            <div class="row">

                <div class="form-group col-lg-12">
                    {!! Form::label('link', awtTrans('Links')) !!}
                    {!! Form::text('link', null, ['class' => ($errors->has('link')) ? 'form-control is-invalid' : 'form-control' , 'required' => 'required']) !!}
                    <small class="text-danger">{{ $errors->first('link') }}</small>
                </div>

            </div>

            <div class="row">

                <div class="form-group col-lg-12">
                    {!! Form::label('photo', awtTrans('الصورة')) !!}
                    <div class="input-group">
                        <span class="input-group-btn">
                            <a id="lfm" data-input="photo" data-preview="photo" class="btn btn-secondary text-white px-4" style="border-top-right-radius: 0;border-bottom-right-radius: 0;border-top-left-radius: 0;border-bottom-left-radius: 0;">
                                <i class="fa fa-picture-o"></i> {{ awtTrans('اختر الصورة') }}
                            </a>
                        </span>
                        {!! Form::text('photo', null, ['class' => $errors->has('photo') ? 'form-control is-invalid photo' : 'form-control photo' , 'readonly' => 'readonly' , 'required' => 'required']) !!}
                    </div>
                    <div class="mb-3 mt-3 d-block slider-holder photo" id="holder">
                        <img width="100" src="http://127.0.0.1:8000/storage/1/th.jpeg" alt="">
                    </div>
                    <small class="text-danger">{{ $errors->first('photo') }}</small>
                </div>
            </div>

            <div class="text-right">
                {!! Form::reset(awtTrans('اعادة'), ['class' => 'btn btn-warning']) !!}
                {!! Form::submit(awtTrans('اضافة'), ['class' => 'btn btn-success']) !!}
            </div>
            {!! Form::close() !!}
    </div>




    @endsection
    @section('scripts')
    <script src="{{ url('dashboard/forms/partners/create.js') }}"></script>
    @endsection