Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/brands/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 Brand</h6>
<a href="{{route('brands.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' => 'brands.store','method'=>'POST', 'enctype' => 'multipart/form-data')) !!}
<div class="row">
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Brand Name<span style="color: red"> *</span></label>
<div>
{!! Form::text('name', '', array('placeholder' => 'Enter brand name','class' => 'form-control', 'required' => '')) !!}
@error('name')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('name') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Country<span style="color: red"> *</span></label>
<div>
{!! Form::select('country_id', [null=>'Select Brand Origin']+$country['countryNameOnly'],[], array('id' => 'country_id', 'class' => 'form-control social-required country_id', 'required' => '')) !!}
@error('country_id')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('country_id') }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group col-sm-4">
<label for="exampleInputEmail1">Brand Logo (<span style="color: red; font-size: 12px">Width:180, Height:76</span>)<!-- <span style="color: red"> *</span> --></label>
<div>
{!! Form::file('logo', array('class' => 'form-control')) !!}
@error('logo')
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('logo') }}</strong>
</span>
@enderror
</div>
</div>
</div>
<button type="submit" class="btn btn-success">Submit</button>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
<!--Row-->
@endsection