


<?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('inventory.update_tyre')); ?>" method="POST" enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            <input type="hidden" name="id" value="<?php echo e($tyreInventory->id); ?>" >
            <div class="row">
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Brand Name</label>
                        <span class="required-field">*</span>
                        <input type="text" name="brand_name" placeholder="Brand Name" class="form-control" value="<?php echo e($tyreInventory->brand_name); ?>" required="" />
                    </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($tyreInventory->commercial_name); ?>" />
                    </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($tyreInventory->model); ?>" />
                    </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($tyreInventory->identity); ?>" />
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Tread Depth</label>
                        <input type="text" name="tread_depth" placeholder="Tread Depth" class="form-control" value="<?php echo e($tyreInventory->tread_depth); ?>" />
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Maximum Tread Depth</label>
                        <input type="text" name="maximum_tread_depth" placeholder="Tread Depth" class="form-control" value="<?php echo e($tyreInventory->maximum_tread_depth); ?>" />
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Pressure</label>
                        <input type="text" name="pressure" placeholder="Pressure" class="form-control" value="<?php echo e($tyreInventory->pressure); ?>" />
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Rolling KM</label>
                        <input type="text" name="rolling_km" placeholder="Rolling KM" class="form-control" value="<?php echo e($tyreInventory->rolling_km); ?>" />
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Maximum Rolling KM</label>
                        <input type="text" name="maximum_rolling_km" placeholder="Maximum Rolling KM" class="form-control" value="<?php echo e($tyreInventory->maximum_rolling_km); ?>" />
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Load Pressure Information</label>
                        <input type="text" name="load_pressure_information" placeholder="Load Pressure Information" class="form-control" value="<?php echo e($tyreInventory->indicated_exterior); ?>" />
                    </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($tyreInventory->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($tyreInventory->type_of_construction); ?>" />
                    </div>
                </div>
      
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Tire Sections Width (mm)</label>
                        <input type="number" name="tyre_sections_width_mm" placeholder="Tire Sections Width (mm)" class="form-control" step="0.01" value="<?php echo e($tyreInventory->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($tyreInventory->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($tyreInventory->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($tyreInventory->load_capacity_index); ?>" />
                    </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($tyreInventory->speed_rating); ?>" />
                    </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($tyreInventory->load_rating); ?>" />
                    </div>
                </div>
                
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Tire Type</label>
                        <select name="tyre_type" class="form-control" >
                            <option value="Tubeless" <?php echo e($tyreInventory->tyre_type == 'Tubeless' ? 'selected' : ''); ?>>Tubeless</option>
                            <option value="Tube" <?php echo e($tyreInventory->tyre_type == 'Tube' ? 'selected' : ''); ?>>Tube</option>
                        </select>
                    </div>
                </div>
          
                
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Quantity</label>
                        <span class="required-field">*</span>
                        <input type="number" name="quantity" placeholder="Quantity" class="form-control" value="<?php echo e($tyreInventory->quantity); ?>" required="" />
                    </div>
                </div>
         
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Unit Price</label>
                        <span class="required-field">*</span>
                        <input type="number" name="unit_price" placeholder="Unit Price" class="form-control" step="0.01" value="<?php echo e($tyreInventory->unit_price); ?>" required="" />
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Total Price</label>
                        <span class="required-field">*</span>
                        <input type="number" name="total_price" placeholder="Total Price" class="form-control" step="0.01" value="<?php echo e($tyreInventory->total_price); ?>" required="" />
                    </div>
                </div>
                
            <div class="col-sm-4">
            <div class="mb-3">
                <label class="form-label">Currency</label>
                <select class="js-example-basic-single form-select select2" name="currency" data-width="100%" >
                    <option value="<?php echo e($tyreInventory->currency); ?>"><?php echo e($tyreInventory->currency); ?></option>
                    <option value="USD">US Dollar</option>
                    <option value="KES">Kenyan Shilling</option>
                    <option value="INR">Indian Rupee</option>
                    <option value="AFN">Afghan Afghani</option>
                    <option value="ALL">Albanian Lek</option>
                    <option value="DZD">Algerian Dinar</option>
                    <option value="AOA">Angolan Kwanza</option>
                    <option value="ARS">Argentine Peso</option>
                    <option value="AMD">Armenian Dram</option>
                    <option value="AWG">Aruban Florin</option>
                    <option value="AUD">Australian Dollar</option>
                    <option value="AZN">Azerbaijani Manat</option>
                    <option value="BSD">Bahamian Dollar</option>
                    <option value="BHD">Bahraini Dinar</option>
                    <option value="BDT">Bangladeshi Taka</option>
                    <option value="BBD">Barbadian Dollar</option>
                    <option value="BYR">Belarusian Ruble</option>
                    <option value="BEF">Belgian Franc</option>
                    <option value="BZD">Belize Dollar</option>
                    <option value="BMD">Bermudan Dollar</option>
                    <option value="BTN">Bhutanese Ngultrum</option>
                    <option value="BTC">Bitcoin</option>
                    <option value="BOB">Bolivian Boliviano</option>
                    <option value="BWP">Botswanan Pula</option>
                    <option value="BRL">Brazilian Real</option>
                    <option value="GBP">British Pound Sterling</option>
                    <option value="BND">Brunei Dollar</option>
                    <option value="BGN">Bulgarian Lev</option>
                    <option value="BIF">Burundian Franc</option>
                    <option value="KHR">Cambodian Riel</option>
                    <option value="CAD">Canadian Dollar</option>
                    <option value="CVE">Cape Verdean Escudo</option>
                    <option value="KYD">Cayman Islands Dollar</option>
                    <option value="XOF">CFA Franc BCEAO</option>
                    <option value="XAF">CFA Franc BEAC</option>
                    <option value="XPF">CFP Franc</option>
                    <option value="CLP">Chilean Peso</option>
                    <option value="CNY">Chinese Yuan</option>
                    <option value="COP">Colombian Peso</option>
                    <option value="KMF">Comorian Franc</option>
                    <option value="CDF">Congolese Franc</option>
                    <option value="CRC">Costa Rican ColÃ³n</option>
                    <option value="HRK">Croatian Kuna</option>
                    <option value="CUC">Cuban Convertible Peso</option>
                    <option value="CZK">Czech Republic Koruna</option>
                    <option value="DKK">Danish Krone</option>
                    <option value="DJF">Djiboutian Franc</option>
                    <option value="DOP">Dominican Peso</option>
                    <option value="XCD">East Caribbean Dollar</option>
                    <option value="EGP">Egyptian Pound</option>
                    <option value="ERN">Eritrean Nakfa</option>
                    <option value="EEK">Estonian Kroon</option>
                    <option value="ETB">Ethiopian Birr</option>
                    <option value="EUR">Euro</option>
                    <option value="FKP">Falkland Islands Pound</option>
                    <option value="FJD">Fijian Dollar</option>
                    <option value="GMD">Gambian Dalasi</option>
                    <option value="GEL">Georgian Lari</option>
                    <option value="DEM">German Mark</option>
                    <option value="GHS">Ghanaian Cedi</option>
                    <option value="GIP">Gibraltar Pound</option>
                    <option value="GRD">Greek Drachma</option>
                    <option value="GTQ">Guatemalan Quetzal</option>
                    <option value="GNF">Guinean Franc</option>
                    <option value="GYD">Guyanaese Dollar</option>
                    <option value="HTG">Haitian Gourde</option>
                    <option value="HNL">Honduran Lempira</option>
                    <option value="HKD">Hong Kong Dollar</option>
                    <option value="HUF">Hungarian Forint</option>
                    <option value="ISK">Icelandic KrÃ³na</option>
                    <option value="IDR">Indonesian Rupiah</option>
                    <option value="IRR">Iranian Rial</option>
                    <option value="IQD">Iraqi Dinar</option>
                    <option value="ILS">Israeli New Sheqel</option>
                    <option value="ITL">Italian Lira</option>
                    <option value="JMD">Jamaican Dollar</option>
                    <option value="JPY">Japanese Yen</option>
                    <option value="JOD">Jordanian Dinar</option>
                    <option value="KZT">Kazakhstani Tenge</option>
                    <option value="KWD">Kuwaiti Dinar</option>
                    <option value="KGS">Kyrgystani Som</option>
                    <option value="LAK">Laotian Kip</option>
                    <option value="LVL">Latvian Lats</option>
                    <option value="LBP">Lebanese Pound</option>
                    <option value="LSL">Lesotho Loti</option>
                    <option value="LRD">Liberian Dollar</option>
                    <option value="LYD">Libyan Dinar</option>
                    <option value="LTL">Lithuanian Litas</option>
                    <option value="MOP">Macanese Pataca</option>
                    <option value="MKD">Macedonian Denar</option>
                    <option value="MGA">Malagasy Ariary</option>
                    <option value="MWK">Malawian Kwacha</option>
                    <option value="MYR">Malaysian Ringgit</option>
                    <option value="MVR">Maldivian Rufiyaa</option>
                    <option value="MRO">Mauritanian Ouguiya</option>
                    <option value="MUR">Mauritian Rupee</option>
                    <option value="MXN">Mexican Peso</option>
                    <option value="MDL">Moldovan Leu</option>
                    <option value="MNT">Mongolian Tugrik</option>
                    <option value="MAD">Moroccan Dirham</option>
                    <option value="MZM">Mozambican Metical</option>
                    <option value="MMK">Myanmar Kyat</option>
                    <option value="NAD">Namibian Dollar</option>
                    <option value="NPR">Nepalese Rupee</option>
                    <option value="ANG">Netherlands Antillean Guilder</option>
                    <option value="TWD">New Taiwan Dollar</option>
                    <option value="NZD">New Zealand Dollar</option>
                    <option value="NIO">Nicaraguan CÃ³rdoba</option>
                    <option value="NGN">Nigerian Naira</option>
                    <option value="KPW">North Korean Won</option>
                    <option value="NOK">Norwegian Krone</option>
                    <option value="OMR">Omani Rial</option>
                    <option value="PKR">Pakistani Rupee</option>
                    <option value="PAB">Panamanian Balboa</option>
                    <option value="PGK">Papua New Guinean Kina</option>
                    <option value="PYG">Paraguayan Guarani</option>
                    <option value="PEN">Peruvian Nuevo Sol</option>
                    <option value="PHP">Philippine Peso</option>
                    <option value="PLN">Polish Zloty</option>
                    <option value="QAR">Qatari Rial</option>
                    <option value="RON">Romanian Leu</option>
                    <option value="RUB">Russian Ruble</option>
                    <option value="RWF">Rwandan Franc</option>
                    <option value="SVC">Salvadoran ColÃ³n</option>
                    <option value="WST">Samoan Tala</option>
                    <option value="SAR">Saudi Riyal</option>
                    <option value="RSD">Serbian Dinar</option>
                    <option value="SCR">Seychellois Rupee</option>
                    <option value="SLL">Sierra Leonean Leone</option>
                    <option value="SGD">Singapore Dollar</option>
                    <option value="SKK">Slovak Koruna</option>
                    <option value="SBD">Solomon Islands Dollar</option>
                    <option value="SOS">Somali Shilling</option>
                    <option value="ZAR">South African Rand</option>
                    <option value="KRW">South Korean Won</option>
                    <option value="XDR">Special Drawing Rights</option>
                    <option value="LKR">Sri Lankan Rupee</option>
                    <option value="SHP">St. Helena Pound</option>
                    <option value="SDG">Sudanese Pound</option>
                    <option value="SRD">Surinamese Dollar</option>
                    <option value="SZL">Swazi Lilangeni</option>
                    <option value="SEK">Swedish Krona</option>
                    <option value="CHF">Swiss Franc</option>
                    <option value="SYP">Syrian Pound</option>
                    <option value="STD">São Tomé and Príncipe Dobra</option>
                    <option value="TJS">Tajikistani Somoni</option>
                    <option value="TZS">Tanzanian Shilling</option>
                    <option value="THB">Thai Baht</option>
                    <option value="TOP">Tongan pa'anga</option>
                    <option value="TTD">Trinidad & Tobago Dollar</option>
                    <option value="TND">Tunisian Dinar</option>
                    <option value="TRY">Turkish Lira</option>
                    <option value="TMT">Turkmenistani Manat</option>
                    <option value="UGX">Ugandan Shilling</option>
                    <option value="UAH">Ukrainian Hryvnia</option>
                    <option value="AED">United Arab Emirates Dirham</option>
                    <option value="UYU">Uruguayan Peso</option>
                    <option value="UZS">Uzbekistan Som</option>
                    <option value="VUV">Vanuatu Vatu</option>
                    <option value="VEF">Venezuelan BolÃ­var</option>
                    <option value="VND">Vietnamese Dong</option>
                    <option value="YER">Yemeni Rial</option>
                    <option value="ZMK">Zambian Kwacha</option>
                </select>
            </div>
        </div>

                
            
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Date</label>
                        <input type="date" name="date" class="form-control" value="<?php echo e($tyreInventory->date); ?>" />
                    </div>
                </div>
                
                <div class="col-sm-4">
    <div class="mb-3">
        <label class="form-label">Warranty Type</label>
        <select name="warranty_type" class="form-select">
            <option value="">Select Warranty Type</option>
            <option value="Manufacturer's Warranty" <?php echo e($tyreInventory->warranty_type === "Manufacturer's Warranty" ? 'selected' : ''); ?>>Manufacturer's Warranty</option>
            <option value="Extended Warranty" <?php echo e($tyreInventory->warranty_type === "Extended Warranty" ? 'selected' : ''); ?>>Extended Warranty</option>
            <option value="Road Hazard Warranty" <?php echo e($tyreInventory->warranty_type === "Road Hazard Warranty" ? 'selected' : ''); ?>>Road Hazard Warranty</option>
            <option value="No Warranty" <?php echo e($tyreInventory->warranty_type === "No Warranty" ? 'selected' : ''); ?>>No Warranty</option>
            <!-- Add more warranty types as needed -->
        </select>
    </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($tyreInventory->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($tyreInventory->warranty_end_date); ?>"  />
                    </div>
                </div>
                
                <div class="col-sm-4">
    <div class="mb-3">
        <label class="form-label">Preferred Vehicles</label>
        <select name="preferred_vehicles[]" class="form-control select2" multiple>
            <?php $__currentLoopData = $vehicle_type; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                $preferredVehicles = json_decode($tyreInventory->preferred_vehicles);
                ?>
                <option value="<?php echo e($data->name); ?>" <?php echo e($preferredVehicles && in_array($data->name, $preferredVehicles) ? 'selected' : ''); ?>><?php echo e($data->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
</div>

                
                <div class="col-sm-4">
                    <div class="mb-3">
                        <label class="form-label">Attachment  
                          <a href="/uploads/<?php echo e($tyreInventory->attachment); ?>"> (File)</a>
                        </label>
                        <input type="file" name="attachment" class="form-control" />
                    </div>
                </div>
                
                <div class="col-sm-12">
                    <div class="mb-3">
                        <label class="form-label">Remarks</label>
                        <textarea name="remarks" placeholder="Remarks" class="form-control" rows="3"><?php echo e($tyreInventory->remarks); ?></textarea>
                    </div>
                </div>
            </div>
            <div class="buttons-alignment mt-4">
                <div>
                    <button type="submit" class="btn btn-primary submit-button-alignment">Update</button>
                </div>
            </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/megamarket/public_html/tms/resources/views/inventory/tyre/edit.blade.php ENDPATH**/ ?>