Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/featured-advertisers/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 Home Advertiser</h6>
<a href="{{route('featured-advertisers.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($featuredAdvertiser, ['method' => 'PATCH','route' => ['featured-advertisers.update', $featuredAdvertiser->id], 'enctype' => 'multipart/form-data']) !!}
<div class="row">
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Company Name<span style="color: red"> *</span></label>
<div>
{!! Form::select('company_id', ['0'=>'Select Company Name']+$company,$featuredAdvertiser->company_id, array('id' => 'company_name', 'class' => 'js-example-basic-multiple js-states form-control select2-hidden-accessible company_name', 'tabindex' => '-1', 'aria-hidden' => 'true', 'single', 'detect' => 0)) !!}
@error('company_id')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('company_id') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Visible Position<span style="color: red"> *</span></label>
<div>
{!! Form::select('home_advertise_position_id', ['0'=>'Select Visible Position']+$hgomeAdvertisePosition,$featuredAdvertiser->home_advertise_position_id, array('id' => 'home_advertise_position_id', 'class' => 'js-example-basic-multiple js-states form-control select2-hidden-accessible company_name', 'tabindex' => '-1', 'aria-hidden' => 'true', 'single', 'detect' => 0)) !!}
@error('home_advertise_position_id')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('home_advertise_position_id') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Image <!-- <span style="color: red"> *</span> --></label>
<div>
{!! Form::file('image', array('class' => 'form-control')) !!}
@error('flag')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('image') }}</strong>
</span>
@enderror
<br/>
<img src="{{ asset('storage/app/public/home-advertisers/'.$featuredAdvertiser->image) }}" width="80">
</div>
</div>
<div class="form-group col-sm-12">
<label for="exampleInputEmail1">URL</label>
<div>
{!! Form::text('url', null, array('placeholder' => 'Enter URL','class' => 'form-control')) !!}
@error('url')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('url') }}</strong>
</span>
@enderror
</div>
</div>
</div>
<button type="submit" class="btn btn-success">Update</button>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
<!--Row-->
@endsection