I'm using laravel 5.2 and blade is used for views. There are many repeated codes in bootstrap syntax in many forms. The following code is just an example:
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<label for="product">Product<span class="require">*</span></label>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<input type="text" required class="form-control" id="product" name="product" value="{{ isset($product)? $product->product_name:Request::old('product_name') }}"/>
<p class="text-danger">{{$errors->first('product_name')}}</p>
</div>
</div>
In that case, bootstrap class col-lg-4 col-md-4 col-sm-4 col-xs-12 and col-lg-4 col-md-4 col-sm-4 col-xs-12 are repeated in one forms and all other forms. How to remove that repeated codes. Thanks in advance.