Current File : //home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/why-tradevalies/edit.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">Edit Why Trade Valy</h6>
<a href="{{route('why-tradevalies.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">
{!! Form::model($data, ['method' => 'PATCH','route' => ['why-tradevalies.update', $data->id], 'enctype' => 'multipart/form-data']) !!}
<div class="row">
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Video<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-8">
<label for="exampleInputEmail1"> Description<span style="color: red"> *</span></label>
<div>
{!! Form::textarea('description', null, array('placeholder' => '','class' => 'form-control content')) !!}
@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">Thumble 1 Title<span style="color: red"> *</span></label>
<div>
{!! Form::text('thumble1_title', null, array('placeholder' => 'Enter thumble 1 title','class' => 'form-control')) !!}
@error('thumble1_title')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble1_title') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-8">
<label for="exampleInputEmail1">Thumble 1 Image <span class="image-label-highlight"> (Width=250 px, height=214 px & Max Size: 500KB)</span> <span style="color: red"> *</span>
</label>
<div>
{!! Form::file('thumble1_image', array('class' => 'form-control thumble1_image', 'onchange' => 'previewImage("thumble1_image", "previewThumble1Image", "thumble1_image")')) !!}
@error('thumble1_image')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble1_image') }}</strong>
</span>
@enderror
<span class="invalid-feedback alert-thumble1_image" role="alert" style="font-weight: bold;"></span>
<img id="previewThumble1Image" src="{{ asset('storage/app/public/why-tradevalies/'.$data->thumble1_image) }}" style="width: 64px; height: 64px;" alt="">
</div>
</div>
<div class="form-group col-sm-12">
<label for="exampleInputEmail1"> Thumble 1 Short Description<span style="color: red"> *</span></label>
<div>
{!! Form::textarea('thumble1_description', null, array('placeholder' => '','class' => 'form-control')) !!}
@error('thumble1_description')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble1_description') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Thumble 2 Title<span style="color: red"> *</span></label>
<div>
{!! Form::text('thumble2_title', null, array('placeholder' => 'Enter thumble 2 title','class' => 'form-control')) !!}
@error('thumble2_title')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble2_title') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-8">
<label for="exampleInputEmail1">Thumble 2 Image<span class="image-label-highlight"> (Width=250 px, height=214 px & Max Size: 500KB)</span> <span style="color: red"> *</span>
</label>
<div>
{!! Form::file('thumble2_image', array('class' => 'form-control thumble2_image', 'onchange' => 'previewImage("thumble2_image", "previewThumble2Image", "thumble2_image")')) !!}
@error('thumble2_image')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble2_image') }}</strong>
</span>
@enderror
<span class="invalid-feedback alert-thumble2_image" role="alert" style="font-weight: bold;"></span>
<img id="previewThumble2Image" src="{{ asset('storage/app/public/why-tradevalies/'.$data->thumble2_image) }}" style="width: 64px; height: 64px;" alt="">
</div>
</div>
<div class="form-group col-sm-12">
<label for="exampleInputEmail1"> Thumble 2 Short Description<span style="color: red"> *</span></label>
<div>
{!! Form::textarea('thumble2_description', null, array('placeholder' => '','class' => 'form-control')) !!}
@error('thumble2_description')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble2_description') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Thumble 3 Title<span style="color: red"> *</span></label>
<div>
{!! Form::text('thumble3_title', null, array('placeholder' => 'Enter thumble 3 title','class' => 'form-control')) !!}
@error('thumble3_title')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble3_title') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-8">
<label for="exampleInputEmail1">Thumble 3 Image<span class="image-label-highlight"> (Width=250 px, height=214 px & Max Size: 500KB)</span> <span style="color: red"> *</span>
</label>
<div>
{!! Form::file('thumble3_image', array('class' => 'form-control thumble3_image', 'onchange' => 'previewImage("thumble3_image", "previewThumble3Image", "thumble3_image")')) !!}
@error('thumble3_image')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble3_image') }}</strong>
</span>
@enderror
<span class="invalid-feedback alert-thumble3_image" role="alert" style="font-weight: bold;"></span>
<img id="previewThumble3Image" src="{{ asset('storage/app/public/why-tradevalies/'.$data->thumble3_image) }}" style="width: 64px; height: 64px;" alt="">
</div>
</div>
<div class="form-group col-sm-12">
<label for="exampleInputEmail1"> Thumble 3 Short Description<span style="color: red"> *</span></label>
<div>
{!! Form::textarea('thumble3_description', null, array('placeholder' => '','class' => 'form-control')) !!}
@error('thumble3_description')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble3_description') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Thumble 4 Title<span style="color: red"> *</span></label>
<div>
{!! Form::text('thumble4_title', null, array('placeholder' => 'Enter thumble 4 title','class' => 'form-control')) !!}
@error('thumble4_title')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble4_title') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-8">
<label for="exampleInputEmail1">Thumble 4 Image <span class="image-label-highlight"> (Width=250 px, height=214 px & Max Size: 500KB)</span> <span style="color: red"> *</span>
</label>
<div>
{!! Form::file('thumble4_image', array('class' => 'form-control thumble4_image', 'onchange' => 'previewImage("thumble4_image", "previewThumble4Image", "thumble4_image")')) !!}
@error('thumble4_image')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble4_image') }}</strong>
</span>
@enderror
<span class="invalid-feedback alert-thumble3_image" role="alert" style="font-weight: bold;"></span>
<img id="previewThumble4Image" src="{{ asset('storage/app/public/why-tradevalies/'.$data->thumble4_image) }}" style="width: 64px; height: 64px;" alt="">
</div>
</div>
<div class="form-group col-sm-12">
<label for="exampleInputEmail1"> Thumble 4 Short Description<span style="color: red"> *</span></label>
<div>
{!! Form::textarea('thumble4_description', null, array('placeholder' => '','class' => 'form-control')) !!}
@error('thumble4_description')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('thumble4_description') }}</strong>
</span>
@enderror
</div>
</div>
</div>
<button type="submit" class="btn btn-success">Submit</button>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
<!--Row-->
@endsection