Current File : /home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/package-deatils/edit.blade.php
@extends('layouts.backend')
    
 <title>Edit Package Details</title>

    @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 Status</h6>
                        <a href="{{url('project-references',$packageDetail->project_reference_id)}}" 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($packageDetail, ['method' => 'PATCH','route' => ['package-details.update', $packageDetail->id]]) !!}
                            
                            <div class="row">

                                
                                 <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1">Duration<span style="color: red"> *</span></label>
                                    <div>

                                        {!! Form::select('duration_id', [''=>'Select Duration']+$duration['dayWithText'],$packageDetail->duration_id, array('id' => '', 'class' => 'form-control', 'required' => '')) !!} 

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

                                
                                <div class="form-group col-sm-6">
                                  <label for="exampleInputEmail1"> Price<span style="color: red"> *</span></label>
                                    <div>
                                     

                                         {!! Form::text('price',  null, array(  'placeholder' => 'Enter price', 'id' => 'name', 'class' => 'form-control ', 'required' => '')) !!}
                                  
                                        @error('price')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('price') }}</strong>
                                            </span>
                                        @enderror


                                    </div>
                                </div>


                                <div class="form-group col-sm-12">
                                  <label for="exampleInputEmail1"> Description</label>
                                    <div>
                                         {!! Form::text('description',  null, array( 'placeholder' => '', 'id' => 'description', 'class' => 'content')) !!}
                                  
                                        @error('description')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('description') }}</strong>
                                            </span>
                                        @enderror


                                    </div>
                                </div>

                                

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


    @endsection