Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/package-leads/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 Package Buying Selling</h6>
                        <a href="{{route('package-banner-ads.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::model($packageLead, ['method' => 'PATCH','route' => ['package-leads.update', $packageLead->id]]) !!}
                            
                            <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 package 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-6">
                                  <label for="exampleInputEmail1">Package Type</label>
                                    <div>
                                          {{ Form::radio('type',0,null, array('class'=>'status')) }} Free

                                          {{ Form::radio('type',1,null, array('class'=>'status')) }} Paid

                                        @error('type')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('type') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


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


    @endsection