<?php $__env->startSection('content'); ?>

<div class="main-mobile-header doc-mobile-header">
      <a id="menuLink" href="#" class="menu-link"><i class="ri-menu-line"></i></a>
    </div>

   

    



     <div class="main main-app p-3 p-lg-4">
     	
        <div class="mb-4">
          <ol class="breadcrumb fs-sm mb-1">
            <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
            <li class="breadcrumb-item active" aria-current="page">Edit Rim</li>
          </ol>
        </div>

      

      <div class="">
        
        <div class="row">

          <div class="col-lg-8">
            <h2 class="main-title">Edit Rim</h2>
            
          </div>
          <div style="text-align: right;" class="col-lg-4 text-right">
           <!--  <button type="button" class="btn btn-primary">Add Taxmaster</button> -->
            <!-- <a href="/form" class="btn btn-primary">Add Taxmaster</a>
 -->
          </div>

        </div>

        <hr class="main-separator">        
    
            
        <div class="card card-shadow-apply">
    <div class="card-body">
        <form action="<?php echo e(route('rim.edit', ['id' => $rim->id])); ?>" method="POST">
    <?php echo csrf_field(); ?>

    <div class="row">
        <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Rim ID</label>
                <input type="text" name="rim_id" class="form-control" value="<?php echo e($rim->rim_id); ?>" required>
            </div>
        </div>
        <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Brand</label>
                <input type="text" name="brand" class="form-control" value="<?php echo e($rim->brand); ?>" required>
            </div>
        </div>

        <!-- <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Model</label>
                <input type="text" name="model" class="form-control" value="<?php echo e($rim->model); ?>" required>
            </div>
        </div> -->
        <!-- <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Size</label>
                <input type="text" name="size" class="form-control" value="<?php echo e($rim->size); ?>" required>
            </div>
        </div> -->
   
        <!-- <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Bolt Pattern</label>
                <input type="text" name="bolt_pattern" class="form-control" value="<?php echo e($rim->bolt_pattern); ?>" required>
            </div>
        </div> -->
        <!-- <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Offset</label>
                <input type="text" name="offset" class="form-control" value="<?php echo e($rim->offset); ?>" required>
            </div>
        </div> -->
  
        <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Material</label>
                <input type="text" name="material" class="form-control" value="<?php echo e($rim->material); ?>" required>
            </div>
        </div>
        <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Color/Finish</label>
                <input type="text" name="color_finish" class="form-control" value="<?php echo e($rim->color_finish); ?>" required>
            </div>
        </div>
   
        <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Purchase Date</label>
                <input type="date" name="purchase_date" class="form-control" value="<?php echo e($rim->purchase_date); ?>" required>
            </div>
        </div>
        <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Purchase Price</label>
                <input type="number" name="purchase_price" step="0.01" class="form-control" value="<?php echo e($rim->purchase_price); ?>" required>
            </div>
        </div>
   
        <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Installation Date</label>
                <input type="date" name="installation_date" class="form-control" value="<?php echo e($rim->installation_date); ?>" required>
            </div>
        </div>
        <div class="col-md-4">
            <div class="mb-3">
                <label class="form-label">Vehicle ID</label>
                <input type="number" name="vehicle_id" class="form-control" value="<?php echo e($rim->vehicle_id); ?>" required>
            </div>
        </div>
    </div>
    
    <!-- Add the rest of the fields here -->
    
    <div class="mb-3">
        <label class="form-label">Notes/Comments</label>
        <textarea name="notes_comments" class="form-control"><?php echo e($rim->notes_comments); ?></textarea>
    </div>
    
    <div class="mb-3">
        <label class="form-label">Status</label>
        <input type="text" name="status" class="form-control" value="<?php echo e($rim->status); ?>" required>
    </div>
    
    <div class="mb-3">
        <button type="submit" class="btn btn-primary">Update Rim</button>
    </div>
</form>

    </div>
</div>








        <br><br><br>

        

      </div><!-- container -->

     
    <style>
    tbody tr:hover {background-color: #F5F5F5;}
    .card-example>.card-body::before {
    content: ""
    }
    </style>


<script>

</script>


<script>
    $(document).ready(function() {
        $("#tour_package").validate({
            rules: {
                package_name: {
                    required: true,
                    maxlength: 20,
                },
                destination: {
                    required: true,
                    maxlength: 20,
                },
                days: {
                    required: true,
                    maxlength: 20,
                },
                hotel_type: {
                    required: true,
                    maxlength: 20,
                },
                meal: {
                    required: true,
                    maxlength: 20,
                },
                currency: {
                    required: true,
                    maxlength: 20,
                },
                price_per_person: {
                    required: true,
                    maxlength: 20,
                },
            },
            messages: {
                package_name: {
                    required: "Package Name is required",
                    maxlength: "Package Name cannot be more than 20 characters"
                },

                destination: {
                    required: "Destination  is required",
                    maxlength: "Destination  cannot be more than 20 characters",
                },

                days: {
                    required: "Day is required",
                    maxlength: "Day cannot be more than 20 characters",
                },

                hotel_type: {
                    required: "Hotel is required",
                    maxlength: "Hotel cannot be more than 20 characters",
                },

                meal: {
                    required: "Meal Price is required",
                    maxlength: "Meal Price cannot be more than 20 characters",
                },

                currency: {
                    required: "Currency is required",
                    maxlength: "Currency cannot be more than 20 characters",
                },

                price_per_person: {
                    required: "Price is required",
                    maxlength: "Price cannot be more than 20 characters",
                },

            }
        });
    });

    $('.select2').select2();
</script>

<?php $__env->stopSection(); ?>


<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vokks/public_html/tms/resources/views/rim/edit.blade.php ENDPATH**/ ?>