<?php $__env->startSection('title'); ?> <?php if( ! empty($title)): ?> <?php echo e($title); ?> | <?php endif; ?> ##parent-placeholder-3c6de1b7dd91465d437ef415f94f36afc1fbc8a8## <?php $__env->stopSection(); ?>

<?php $__env->startSection('main'); ?>
<div class="">

    <div id="wrapper">
        <?php echo $__env->make('admin.sidebar_menu', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div id="page-wrapper">
            <?php if( ! empty($title)): ?>
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"> <?php echo e($title); ?> </h1>
                </div> <!-- /.col-lg-12 -->
            </div> <!-- /.row -->
            <?php endif; ?>

            <?php echo $__env->make('admin.flash_msg', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>

            <div class="container">
                <div class="container"
                    style="background-color:white;margin-top: 20px;padding-top: 25px;padding-bottom: 50px;">
                    <h3>Edit Provider</h3>
                    <form action="<?php echo e(route("providers_edit", $provider->id)); ?>" method="post"
                        enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="logo">
                                    <h5>Logo</h5>
                                </label>
                                <p style="margin-top:10px;"><img
                                        src="/uploads/images/serviceproviders/<?php echo e($provider->logo); ?>"
                                        style="max-width:50%;"> </p>
                                <input type="file" name="logo" id="logo">

                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="name">
                                    <h5>Name</h5>
                                </label>
                                <input type="text" class="form-control form-control-lg" name="name" id="name"
                                    placeholder="Name" value="<?php echo e($provider->name); ?> " required>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="email">
                                    <h5>Email</h5>
                                </label>
                                <input type="email" class="form-control form-control-lg" name="email" id="email"
                                    placeholder="Email" value="<?php echo e($provider->email); ?> " required>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="phone_number">
                                    <h5>Phone number</h5>
                                </label>
                                <input type="text" class="form-control form-control-lg" name="phone_number"
                                    id="phone_number" placeholder="phone number" value="<?php echo e($provider->phone_number); ?>"
                                    required>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="website">
                                    <h5>Website</h5>
                                </label>
                                <input type="text" class="form-control form-control-lg" name="website" id="website"
                                    placeholder="website" value="<?php echo e($provider->website); ?>" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="type">
                                    <h5>Type</h5>
                                </label>

                                <select type="text" class="form-control form-control-lg" name="type" id="type" required>
                                    <option value="">Choose a Provider</option>
                                    <option value="MORTGAGE" <?php if($provider->type == "MORTGAGE"): ?> selected <?php endif; ?>>MORTGAGE
                                    </option>
                                    <option value="INSURANCE" <?php if($provider->type == "INSURANCE"): ?>selected <?php endif; ?>
                                        >INSURANCE</option>
                                    <option value="INTERNET" <?php if($provider->type == "INTERNET"): ?>selected <?php endif; ?>>INTERNET
                                    </option>
                                    <option value="WATER" <?php if($provider->type == "WATER"): ?>selected <?php endif; ?>>WATER</option>
                                    <option value="TELEVISION" <?php if($provider->type == "TELEVISION"): ?>selected
                                        <?php endif; ?>>TELEVISION</option>
                                    <option value="MORTGAGE INSURANCE" <?php if($provider->type == "MORTGAGE INSURANCE"): ?>selected <?php endif; ?>>MORTGAGE INSURANCE</option>
                                    <option value="PROPERTY TAXES" <?php if($provider->type == "PROPERTY TAXES"): ?>selected <?php endif; ?>>PROPERTY TAXES</option>
                                    <!--<option value="INTERNET">INTERNET</option>-->

                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="description">
                                    <h5>Description</h5>
                                </label>
                                <textarea type="text" class="form-control form-control-lg" type="text" rows="15"
                                    name="description" id="description" required><?php echo e($provider->description); ?> </textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="rate">
                                    <h5>Rate (If Applies)</h5>
                                </label>
                                <input type="number" class="form-control form-control-lg" name="rate" id="rate"
                                    value="<?php echo e($provider->rate); ?>" placeholder="Rate">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="price">
                                    <h5>Price (If Applies)</h5>
                                </label>
                                <input type="number" class="form-control form-control-lg" name="price" id="price"
                                    value="<?php echo e($provider->price); ?>" placeholder="Price">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="status">
                                    <h5>Set Status</h5>
                                </label>
                                <select type="text" class="form-control form-control-lg" name="status" id="status" required>>
                                    <option value="0" <?php if($provider->status == 0): ?> selected <?php endif; ?>>Active</option>
                                    <option value="1" <?php if($provider->status == 1): ?> selected <?php endif; ?>>Inactive</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-xs-12">
                                <label for="premium">
                                    <h5>Set premium</h5>
                                </label>
                                <select type="text" class="form-control form-control-lg" name="premium" id="premium" required>>
                                    <option value="0" <?php if($provider->is_premium == 0): ?> selected <?php endif; ?>>No</option>
                                    <option value="1" <?php if($provider->is_premium == 1): ?> selected <?php endif; ?>>Yes</option>
                                </select>
                            </div>
                        </div>



                        <div class="form-group" style='margin-top:20px'>
                            <div class="col-xs-12">
                                <button type="submit">SUBMIT</button>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div> <!-- /#page-wrapper -->

    </div> <!-- /#wrapper -->

</div> <!-- /#container -->
<?php $__env->stopSection(); ?>

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

<script>
    <?php if(session('success')): ?>
            toastr.success('<?php echo e(session('success')); ?>', '<?php echo e(trans('app.success')); ?>', toastr_options);
        <?php endif; ?>
        <?php if(session('error')): ?>
            toastr.error('<?php echo e(session('error')); ?>', '<?php echo e(trans('app.success')); ?>', toastr_options);
        <?php endif; ?>
</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.main', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>