Current File : //home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/recommends/create.blade.php |
@extends('layouts.backend')
@section('content')
<!-- Container Fluid-->
<div class="row">
<div class="col-lg-12">
<!-- Form Basic -->
<div class="card mb-4">
<div class="card-header card-header-modify py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-heading-bar">Add New Recommend</h6>
<a href="{{route('recommends.index')}}" class="btn btn-default-index btn-sm text-right "><i class="fas fa-arrow-alt-circle-left"></i> Back</a>
</div>
<div class="card-body">
<!-- @if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif -->
{!! Form::open(array('route' => 'recommends.store','method'=>'POST', 'enctype' => 'multipart/form-data')) !!}
<div class="row">
<div class="form-group col-sm-12">
<label for="exampleInputEmail1">Title<span style="color: red"> *</span></label>
<div>
{!! Form::text('title', null, array('placeholder' => 'Enter title','class' => 'form-control', 'required' => '')) !!}
@error('title')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('title') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-6">
<label for="exampleInputEmail1">Video ID<span style="color: red"> *</span></label>
<div>
{!! Form::text('video', null, array('placeholder' => 'Enter youtube video ID','class' => 'form-control', 'required' => '')) !!}
@error('video')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('video') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-6">
<label for="exampleInputEmail1">Point One<span style="color: red"> *</span></label>
<div>
{!! Form::text('point_one', null, array('placeholder' => 'Enter point one','class' => 'form-control', 'required' => '')) !!}
@error('point_one')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('point_one') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-6">
<label for="exampleInputEmail1">Point Two<span style="color: red"> *</span></label>
<div>
{!! Form::text('point_two', null, array('placeholder' => 'Enter point two','class' => 'form-control', 'required' => '')) !!}
@error('point_two')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('point_two') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-6">
<label for="exampleInputEmail1">Point Three<span style="color: red"> *</span></label>
<div>
{!! Form::text('point_three', null, array('placeholder' => 'Enter point three','class' => 'form-control', 'required' => '')) !!}
@error('point_three')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('point_three') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-12">
<label for="exampleInputEmail1">Button URL</label>
<div>
{!! Form::text('button_url', null, array('placeholder' => 'Enter button URL','class' => 'form-control')) !!}
@error('button_url')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('button_url') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-6">
<label for="exampleInputEmail1">Banner Image <span class="image-label-highlight"> (Width=1921 px, height=374 px & Max Size: 500KB)</span> <span style="color: red"> *</span></label>
<div>
{!! Form::file('banner_image', array('class' => 'form-control banner', 'onchange' => 'previewImage("banner", "previewBanner", "banner")', 'required' => '')) !!}
@error('banner_image')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('banner_image') }}</strong>
</span>
@enderror
<span class="invalid-feedback alert-banner" role="alert" style="font-weight: bold;"></span>
<img id="previewBanner" src="" alt="">
</div>
</div>
<div class="form-group col-sm-6">
<label for="exampleInputEmail1">Recommend Logo <span class="image-label-highlight"> (Width=560 px, height=195 px & Max Size: 500KB)</span> <span style="color: red"> *</span>
</label>
<div>
{!! Form::file('recommend_logo', array('class' => 'form-control recommend_logo', 'onchange' => 'previewImage("recommend_logo", "previewRecommendLogo", "recommend_logo")', 'required' => '')) !!}
@error('recommend_logo')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('recommend_logo') }}</strong>
</span>
@enderror
<span class="invalid-feedback alert-recommend_logo" role="alert" style="font-weight: bold;"></span>
<img id="previewRecommendLogo" src="" alt="">
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1"> Description<span style="color: red"> *</span></label>
<div>
{!! Form::textarea('description', null, array('placeholder' => '','class' => 'form-control', 'required' => '')) !!}
@error('description')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('description') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Slogan<span style="color: red"> *</span></label>
<div>
{!! Form::textarea('slogan', null, array('placeholder' => '','class' => 'form-control', 'required' => '')) !!}
@error('slogan')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('slogan') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1"> Footer Text<span style="color: red"> *</span></label>
<div>
{!! Form::textarea('footer_text', null, array('placeholder' => '','class' => 'form-control', 'required' => '')) !!}
@error('footer_text')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('footer_text') }}</strong>
</span>
@enderror
</div>
</div>
</div>
<button type="submit" class="btn btn-success">Submit</button>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
<!--Row-->
@endsection