<?php $__env->startSection('content'); ?>
    <div class="container-xxl flex-grow-1 container-p-y">

        <div class="card">
            <h5 class="card-header" style="color:black;">Update Camera</h5>
            <div class="table-responsive text-nowrap">
                <form action="<?php echo e(route('camera.update')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                  
                    <input type="hidden" name="id" value="<?php echo e($data['_id']); ?>" />
                    <input type="hidden" name="region" value="<?php echo e($data['region_id']); ?>" />

                    <div class="row" style="margin: 10px;">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label>Camera Name</label>
                                <input type="text" value="<?php echo e(old('camera', $data['cameraname'])); ?>"
                                    placeholder="Enter Camera Name" required
                                    class="form-control <?php $__errorArgs = ['camera'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="camera" />
                                <?php if($errors->has('camera')): ?>
                                    <b style="color:#ff3e1d;"><?php echo e($errors->first('camera')); ?> </b>
                                <?php endif; ?>

                            </div>
                        </div>

                        <div class="col-md-12" style="margin-top: 10px;">
                            <div class="form-group">
                                <label>Stream Url</label>
                                <input type="url" value="<?php echo e(old('url', $data['stream_url'])); ?>"
                                    placeholder="Enter Streamming URL" required
                                    class="form-control <?php $__errorArgs = ['camera'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="url" />
                                <?php if($errors->has('url')): ?>
                                    <b style="color:#ff3e1d;"><?php echo e($errors->first('url')); ?> </b>
                                <?php endif; ?>
                            </div>
                        </div>

                        <div class="col-md-12" style="margin-top:10px;">
                            <div class="form-check form-switch mb-2" style="margin-top: 15px;height: 70px;">
                                <input class="form-check-input" type="checkbox" <?php echo e($data['status'] ? 'checked' : ''); ?>

                                    id="flexSwitchCheckChecked" name="status" style="height: 46px;width: 98px;">
                                <label style=" margin-left: 21px; font-size: 19px; margin-top: 10px; "
                                    class="form-check-label" for="flexSwitchCheckChecked">On/Off Streaming Session</label>
                            </div>
                        </div>

                    </div>

                    <div class="row" style="margin: 50px;display: block;text-align: center;;">
                        <input style="width:150px;" type="submit" value="Submit" class="btn btn-primary" />
                    </div>
                </form>

            </div>

        </div>


        <div class="row" style=" text-align: center; display: block; margin-top: 100px; margin-bottom: 65px; ">
        </div>


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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\surveillance\resources\views/add/edit_camera.blade.php ENDPATH**/ ?>