<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2><?= print_lang($app_lang,'edit_buy_car'); ?></h2>
        <ol class="breadcrumb">
            <li>
                <a class="url-elem" href="<?php echo url('/dashboard'); ?>"><?= print_lang($app_lang,'home'); ?></a>
            </li>
            <li>
                <a class="url-elem" href="<?php echo url('/people-showroom'); ?>"><?= print_lang($app_lang,'people_showroom'); ?></a>
            </li>
            <li class="active">
                <strong><?= print_lang($app_lang,'people_showroom_edit_title'); ?></strong>
            </li>
        </ol>
    </div>
    <div class="col-lg-2">
    </div>
</div>


<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox-title">
        <h5><?= print_lang($app_lang,'fields_with'); ?> <strong class="text-danger">*</strong> <?= print_lang($app_lang,'are_mandatory'); ?></h5>
    </div>
    <div class="ibox-content">
        <!-- spinner -->
        <div class="sk-spinner sk-spinner-three-bounce">
            <div class="sk-bounce1"></div>
            <div class="sk-bounce2"></div>
            <div class="sk-bounce3"></div>
        </div>
        <!-- spinner -->
        <div class="row">
            <div class="col-sm-12 b-r">
                <form role="form" id="people-showroom-form" action="<?php echo url('/people-showroom/update').'/'.$editing_data['uid']; ?>">

                    <div class="row extra-mar-botm">
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_car_type'); ?> <strong class="text-danger">*</strong></label>
                                <select class="form-control chosen-select" name="car_type">
                                    <option disabled="" selected="">-- <?= print_lang($app_lang,'people_showroom_input_car_type'); ?> --</option>
                                    <option value="containery" <?php if($editing_data['car_type'] == 'containery'){echo "selected='selected'";}?>><?= print_lang($app_lang,'people_showroom_input_car_type_containry'); ?></option>
                                    <option value="imported" <?php if($editing_data['car_type'] == 'imported'){echo "selected='selected'";}?>><?= print_lang($app_lang,'people_showroom_input_car_type_imported'); ?></option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_currency'); ?> <strong class="text-danger">*</strong></label>
                                <select class="form-control chosen-select" name="currency">
                                    <option disabled="" selected="">-- <?= print_lang($app_lang,'people_showroom_input_currency'); ?> --</option>
                                    <?php foreach($currencies as $row){ ?>
                                        <option <?php if($editing_data['currency'] == $row['uid']){echo "selected='selected'";}?> value="<?= $row['uid']; ?>" data-usd-equalance="<?= $row['usd_equalance']; ?>"><?= $row['name']; ?> (<?= $row['symbol']; ?>)</option>
                                    <?php } ?>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_car_name'); ?> <strong class="text-danger">*</strong></label>
                                <input type="text" class="form-control" name="car_name" value="<?= $editing_data['car_name']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_car_name'); ?>">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_car_shasi'); ?> <strong class="text-danger">*</strong></label>
                                <input type="text" class="form-control" name="shasi_num" value="<?= $editing_data['shasi_num']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_car_shasi'); ?>">
                            </div>
                        </div>
                    </div>

                    <div class="row extra-mar-botm">
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_car_modal'); ?></label>
                                <input type="text" class="form-control" name="car_model" value="<?= $editing_data['car_model']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_car_modal'); ?>">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_car_color'); ?></label>
                                <input type="text" class="form-control" name="car_color" value="<?= $editing_data['car_color']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_car_color'); ?>">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_car_makes'); ?></label>
                                <input type="text" class="form-control" name="car_makes" value="<?= $editing_data['car_makes']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_car_makes'); ?>">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_car_cost'); ?></label>
                                <input type="text" class="form-control" name="car_cost" value="<?= $editing_data['car_cost']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_car_cost'); ?>">
                            </div>
                        </div>

                        
                    </div>

                    <div class="row extra-mar-botm">
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_seller_name'); ?></label>
                                <input type="text" class="form-control" name="seller_name" value="<?= $editing_data['seller_name']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_seller_name'); ?>">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_seller_tazkira'); ?></label>
                                <input type="text" class="form-control" name="seller_tazkira" value="<?= $editing_data['seller_tazkira']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_seller_tazkira'); ?>">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_seller_address'); ?></label>
                                <input type="text" class="form-control" name="seller_address" value="<?= $editing_data['seller_address']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_seller_address'); ?>">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_seller_mobile'); ?></label>
                                <input type="text" class="form-control" name="seller_mobile" value="<?= $editing_data['seller_mobile']; ?>" placeholder="<?= print_lang($app_lang,'people_showroom_input_seller_mobile'); ?>">
                            </div>
                        </div>
                    </div>

                    <div class="row extra-mar-botm">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_car_images'); ?></label>
                                <input type="file" class="form-control" name="car_images[]" multiple>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'people_showroom_input_seller_image'); ?></label>
                                <input type="file" class="form-control" name="seller_image">
                            </div>
                        </div>
                        
                    </div>
                    <div class="row extra-mar-botm">
                        <div class="col-md-12 text-right">
                            <a class="btn btn-w-m btn-outline btn-danger url-elem" href="<?php echo url('/people-showroom'); ?>"><?= print_lang($app_lang,'cancel'); ?></a>
                            <button class="btn btn-w-m btn-primary" type="submit"><?= print_lang($app_lang,'update'); ?></button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>

</div>