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

        <div class="card">
            <h5 class="card-header card-title">Add New Camera</h5>
            <div class="table-responsive text-nowrap">
                <form action="<?php echo e(route('camera.save')); ?>" method="POST">
                    <?php echo csrf_field(); ?>

                    <div class="row" style="margin: 10px;">

                        <input type="hidden" name="region"
                            <?php $__currentLoopData = $regions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                               value="<?php echo e($list->_id); ?>" <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>" />

                        <div class="col-md-6">
                            <label>Select Region</label>
                            <div class="form-group" style="display: flex;">
                                <input class="form-control" readonly disabled
                                    <?php $__currentLoopData = $regions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    value="<?php echo e($list->region); ?>" /> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                            </div>


                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Camera Name</label>
                                    <input type="text" 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"
                                        value="<?php echo e(old('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" placeholder="Enter Streamming URL" required
                                        value="<?php echo e(old('url')); ?>"
                                        class="form-control <?php $__errorArgs = ['url'];
$__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:20px;">
                                <div class="form-check form-switch mb-2" style="margin-top: 15px;height: 70px;">
                                    <input class="form-check-input bg-success" type="checkbox" id="flexSwitchCheckChecked"
                                        checked="" 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-default" />
                        </div>
                </form>

            </div>

            <div class="row">
                <h5>Sample Videos</h5>
                <a href="https://video.codxcanvas.com/people.mp4">https://video.codxcanvas.com/people.mp4</a><br>
                <a href="https://video.codxcanvas.com/sample1.mp4">https://video.codxcanvas.com/sample1.mp4</a><br>
                <a href="https://video.codxcanvas.com/sample1.mp4">https://video.codxcanvas.com/sample1.mp4</a><br>
            </div>

        </div>


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


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

<?php $__env->startSection('script_section'); ?>
    <script>
        $(document).ready(function() {
            $('#mySelect').select2();
        });
    </script>
<?php $__env->stopSection(); ?>
<?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/add_camera.blade.php ENDPATH**/ ?>