@extends('layouts.master')
@section('content')
    <div class="container-xxl flex-grow-1 container-p-y">

        <div class="card">
            <h5 class="card-header card-title">Camera Stream Settings</h5>
            <div class="table-responsive text-nowrap">
                <form action="{{ route('store.stream.setings') }}"
                      method="POST">
                    @csrf

                    <input type="hidden" name="setting" value="{{isset( $settings )  ?? $settings['_id'] }}" />
                    <input type="hidden" name="camera" value="{{$camera_id}}" />
                    <div class="row" style="margin: 10px;">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="text-white">Extract Frame Time</label>
                                <input type="number" placeholder="" required

                                @if ($settings) value="{{ $settings['extract_frame_time'] }}"  @else
                                 value="10"
                                 @endif
                                 class="form-control input-rounded" name="extract_frame_time" />
                            </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>


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


    </div>
    </div>
    </div>
@endSection
