HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/hours.komma.pro/resources/views/subprojects/edit.blade.php
@extends('app')

@section('content')
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <h1>Bewerk deelproject</h1>
                        <form method="POST" action="/subprojecten/{{$subproject->id}}">
                            <div class="form-group">
                                <div class="col-lg-11">
                                    <label>Name</label>
                                    <input name="name" id="name" class="form-control" value="{{$subproject->name}}">
                                    <label>Budget</label>
                                    <input name="budget" id="budget" type="number" step="0.25" min="0" class="form-control spinner" value="{{$subproject->budget}}">
                                    <label style="width: 50%; float:left;">Uurprijs<input name="hourly_rate" id="hourlyRate" type="number" step="0.01" min="0" class="form-control spinner" value="{{$subproject->hourly_rate}}"></label>
                                    <label class="control-label pull-right" style="width: 45%">
                                        <br>
                                        <label class="control-label pull-right" style="width: 45%">
                                            <input id="billable_no" name="billable" type="radio" value="0" @if($subproject->billable == 0 || $subproject->SubprojectTemplate->standard_billable == 0) checked @endif> Niet facturabel
                                        </label>
                                        <label class="control-label" style="width: 45%">
                                            <input id="billable_yes" name="billable" type="radio" value="1" @if($subproject->billable || $subproject->SubprojectTemplate->standard_billable) checked @endif> Facturabel
                                        </label>

                                        <label class="control-label" style="width: 45%">
                                            <input name="locked" type="checkbox" value="1" @if($subproject->locked) checked @endif> Vergrendeld
                                        </label>
                                    <br>
                                </div>
                            </div>
                            @include('partials.generalElements.saveButtons', [
                                'value' => 'Bewerk deelproject'
                            ])
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <input type="hidden" name="_method" value="PUT">
                        </form>
                    </div>
                    @if(count($errors))
                        @foreach($errors->all() as $error)
                            <div class="alert alert-danger" role="alert">{{$error}}</div>
                        @endforeach
                    @endif
                </div>
            </div>
        </div>
    </div>
@stop
@section('script')
    <script type="text/javascript">
        $(document).ready(function () {
            $(".spinner").each(function() {
                $(this).spinner({
                    step: 0.25,
                    numberFormat: "n",
                    disabled: this.disabled
                });
                $(this).parent().css('width', '100%');
            });
        });
    </script>
@stop