<?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 Tyre</li>
          </ol>
        </div>

      

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

          <div class="col-lg-8">
            <h2 class="main-title">Edit Tyre</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('tyres', ['id' => $tire->id])); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <div class="row">
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Brand</label>
                        <input type="text" name="brand" placeholder="Brand" class="form-control" value="<?php echo e($tire->brand); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Model</label>
                        <input type="text" name="model" placeholder="Model" class="form-control" value="<?php echo e($tire->model); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Size</label>
                        <input type="text" name="size" placeholder="Size" class="form-control" value="<?php echo e($tire->size); ?>" readonly />
                    </div>
                </div>
                <!-- <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Tread Depth</label>
                        <input type="number" name="tread_depth" placeholder="Tread Depth" class="form-control" step="0.1" value="<?php echo e($tire->tread_depth); ?>" readonly />
                    </div>
                </div> -->
                <div class="col-sm-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($tire->purchase_date); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Purchase Cost</label>
                        <input type="number" name="purchase_cost" placeholder="Purchase Cost" class="form-control" step="0.01" value="<?php echo e($tire->purchase_cost); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-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($tire->installation_date); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Vehicle ID</label>
                        <input type="number" name="vehicle_id" placeholder="Vehicle ID" class="form-control" value="<?php echo e($tire->vehicle_id); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Position on Vehicle</label>
                        <input type="text" name="position_on_vehicle" placeholder="Position on Vehicle" class="form-control" value="<?php echo e($tire->position_on_vehicle); ?>" readonly />
                    </div>
                </div>
                <!-- <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Current Mileage</label>
                        <input type="number" name="current_mileage" placeholder="Current Mileage" class="form-control" value="<?php echo e($tire->current_mileage); ?>" readonly />
                    </div>
                </div> -->
                <!-- <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Tire Condition</label>
                        <input type="text" name="tire_condition" placeholder="Tire Condition" class="form-control" value="<?php echo e($tire->tire_condition); ?>" readonly />
                    </div>
                </div> -->
                <!-- <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Inflation Pressure</label>
                        <input type="number" name="inflation_pressure" placeholder="Inflation Pressure" class="form-control" step="0.1" value="<?php echo e($tire->inflation_pressure); ?>" readonly />
                    </div>
                </div> -->
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Temperature</label>
                        <input type="number" name="temperature" placeholder="Temperature" class="form-control" step="0.1" value="<?php echo e($tire->temperature); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Load Rating</label>
                        <input type="text" name="load_rating" placeholder="Load Rating" class="form-control" value="<?php echo e($tire->load_rating); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Speed Rating</label>
                        <input type="text" name="speed_rating" placeholder="Speed Rating" class="form-control" value="<?php echo e($tire->speed_rating); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">DOT Number</label>
                        <input type="text" name="dot_number" placeholder="DOT Number" class="form-control" value="<?php echo e($tire->dot_number); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Status</label>
                        <input type="text" name="status" placeholder="Status" class="form-control" value="<?php echo e($tire->status); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Warranty Provider</label>
                        <input type="text" name="warranty_provider" placeholder="Warranty Provider" class="form-control" value="<?php echo e($tire->warranty_provider); ?>" readonly />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Warranty Type</label>
                        <input type="text" name="warranty_type" placeholder="Warranty Type" class="form-control" value="<?php echo e($tire->warranty_type); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Warranty Start Date</label>
                        <input type="date" name="warranty_start_date" class="form-control" value="<?php echo e($tire->warranty_start_date); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Warranty End Date</label>
                        <input type="date" name="warranty_end_date" class="form-control" value="<?php echo e($tire->warranty_end_date); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Notes/Comments</label>
                        <textarea name="notes_comments" placeholder="Notes/Comments" class="form-control"><?php echo e($tire->notes_comments); ?></textarea>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Barcode/QR Code</label>
                        <input type="text" name="barcode_qr_code" placeholder="Barcode/QR Code" class="form-control" value="<?php echo e($tire->barcode_qr_code); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Commercial Name</label>
                        <input type="text" name="commercial_name" placeholder="Commercial Name" class="form-control" value="<?php echo e($tire->commercial_name); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Identity</label>
                        <input type="text" name="identity" placeholder="Identity" class="form-control" value="<?php echo e($tire->identity); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Load Pressure Information</label>
                        <textarea name="load_pressure_information" placeholder="Load Pressure Information" class="form-control"><?php echo e($tire->load_pressure_information); ?></textarea>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Indicated Exterior</label>
                        <input type="text" name="indicated_exterior" placeholder="Indicated Exterior" class="form-control" value="<?php echo e($tire->indicated_exterior); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Type of Construction</label>
                        <input type="text" name="type_of_construction" placeholder="Type of Construction" class="form-control" value="<?php echo e($tire->type_of_construction); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Tyre Sections Width (mm)</label>
                        <input type="number" name="tyre_sections_width_mm" placeholder="Tyre Sections Width (mm)" class="form-control" step="0.01" value="<?php echo e($tire->tyre_sections_width_mm); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Section Height to Section Width Ratio</label>
                        <input type="number" name="section_height_to_section_width_ratio" placeholder="Section Height to Section Width Ratio" class="form-control" step="0.01" value="<?php echo e($tire->section_height_to_section_width_ratio); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Rim Diameter (inches)</label>
                        <input type="number" name="rim_diameter_inches" placeholder="Rim Diameter (inches)" class="form-control" step="0.01" value="<?php echo e($tire->rim_diameter_inches); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Load Capacity Index</label>
                        <input type="text" name="load_capacity_index" placeholder="Load Capacity Index" class="form-control" value="<?php echo e($tire->load_capacity_index); ?>" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Tyre Type</label>
                        <select name="tyre_type" class="form-control">
                            <option value="Tubeless" <?php if($tire->tyre_type == 'Tubeless'): ?> selected <?php endif; ?>>Tubeless</option>
                            <option value="Tube" <?php if($tire->tyre_type == 'Tube'): ?> selected <?php endif; ?>>Tube</option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Remarks</label>
                        <textarea name="remarks" placeholder="Remarks" class="form-control"><?php echo e($tire->remarks); ?></textarea>
                    </div>
                </div>
            </div>
            <div class="text-left mt-4">
                <button type="submit" class="btn btn-primary">Update Tire</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/u842563099/domains/codesquarry.online/public_html/tms/resources/views/tyre/edit.blade.php ENDPATH**/ ?>