Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/countries/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 Country</h6>
                        <a href="{{route('countries.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' => 'countries.store','method'=>'POST', 'enctype'  => 'multipart/form-data')) !!}
                            <div class="row">

                                <div class="form-group col-sm-4">
                                  <label for="exampleInputEmail1">Name<span style="color: red"> *</span></label>
                                    <div>
                                        {!! Form::text('name', null, array('placeholder' => 'Enter country 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">ISO Code 2 Digit<span style="color: red"> *</span> (<a href="https://countrycode.org/" target="_blank">See Demo List</a>)</label>
                                    <div>
                                        {!! Form::text('iso_code_two_digit', null, array('placeholder' => 'Ex: BD','class' => 'form-control', 'required' => '')) !!}
                                        @error('iso_code_two_digit')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('iso_code_two_digit') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                <div class="form-group col-sm-4">
                                <label for="exampleInputEmail1">ISO Code 3 Digit<span style="color: red"> *</span> (<a href="https://countrycode.org/" target="_blank">See Demo List</a>)</label>
                                    <div>
                                        {!! Form::text('iso_code_three_digit', null, array('placeholder' => 'Ex: BGD','class' => 'form-control', 'required' => '')) !!}
                                        @error('iso_code_three_digit')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('iso_code_three_digit') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                <div class="form-group col-sm-4">
                                  <label for="exampleInputEmail1">Calling Code<span style="color: red"> *</span> (<a href="https://countrycode.org/" target="_blank">See Demo List</a>)</label>
                                    <div>
                                        {!! Form::text('calling_code', null, array('placeholder' => 'Ex: +88','class' => 'form-control', 'required' => '')) !!}
                                        @error('calling_code')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('calling_code') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                <div class="form-group col-sm-4">
                                  <label for="exampleInputEmail1">Curency Name<span style="color: red"> *</span> (<a href="https://blog.revolut.com/a/currency-symbols-of-the-world/" target="_blank">See Demo List</a>)</label>
                                    <div>
                                        {!! Form::text('currency_name', null, array('placeholder' => 'Ex: Taka','class' => 'form-control', 'required' => '')) !!}
                                        @error('currency_name')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('currency_name') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>

                                <div class="form-group col-sm-4">
                                  <label for="exampleInputEmail1">Curency Sign<span style="color: red"> *</span> (<a href="https://blog.revolut.com/a/currency-symbols-of-the-world/" target="_blank">See Demo List</a>)</label>
                                    <div>
                                        {!! Form::text('currency_sign', null, array('placeholder' => 'Ex: ৳','class' => 'form-control', 'required' => '')) !!}
                                        @error('currency_sign')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('currency_sign') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>

                                
                                <div class="form-group col-sm-4">
                                  <label for="exampleInputEmail1">Flag  (<a href="https://alexsobolenko.github.io/flag-icons/" target="_blank">See Demo List</a>)</label>
                                    <div>
                                    {!! Form::text('flag', null, array('placeholder' => '','class' => 'form-control', 'required' => '')) !!}
                                        @error('flag')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('flag') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>



                                                                                   
                            </div>                            
                          
                        <button type="submit" class="btn btn-success">Submit</button>
                        {!! Form::close() !!}
                    </div>
                  </div>
                </div>
            </div>
          <!--Row-->


    @endsection