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/settings/projectTemplate/edit.blade.php
@extends('settings.master')
@section('title')
    <h1>Project template wijzigen</h1>
@stop

@section('content1')
    <form method="POST"
          action="/instellingen/projecten/{{intval($projectTemplate->id)}}">
        <div class="form-group">
            <div class="col-lg-11">
                <label>Naam project template</label>
                <input name="name" id="name" class="form-control" value="{{ $projectTemplate->name ?? old('name') }}">
                <label>Standaard uurprijs</label><br>
                <input name="hourly_rate" id="hourlyrate" step="0.01" min="0" class="form-control spinner" type="number" value="{{$projectTemplate->hourly_rate ?? old('hourly_rate')}}">
                <div class="form-group">
                    <label class="control-label">Standaard facturabel</label><br>
                    <div class="btn-group btn-radio">
                        <input id="billable_yes" name="billable" type="radio" value="1" @if($projectTemplate->standard_billable == 1) checked @endif>
                        <label for="billable_yes">Ja</label>
                        &nbsp;&nbsp;
                        <input id="billable_no" name="billable" type="radio" value="0" @if($projectTemplate->standard_billable != 1) checked @endif>
                        <label for="billable_no">Nee</label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label">Standaard productiviteit</label><br>
                    <div class="btn-group btn-radio">
                        <input id="productivity_yes" name="productivity" type="radio" value="1" @if($projectTemplate->standard_productivity == 1) checked @endif>
                        <label for="productivity_yes">Ja</label>&nbsp;&nbsp;
                        <input id="productivity_no" name="productivity" type="radio" value="0" @if($projectTemplate->standard_productivity != 1) checked @endif>
                        <label for="productivity_no">Nee</label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label">Soort werkzaamheden</label><br>
                    <div class="btn-group btn-radio">
                        <input id="reserved_yes" name="reserved" type="radio" value="1" @if($projectTemplate->reserved == 1) checked @endif>
                        <label for="reserved_yes">Project</label>&nbsp;&nbsp;
                        <input id="reserved_no" name="reserved" type="radio" value="0" @if($projectTemplate->reserved != 1) checked @endif>
                        <label for="reserved_no">Onderhoud</label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label">Status</label><br>
                    <div class="btn-group btn-radio">
                        <input id="active_yes" name="active" type="radio" value="1" @if($projectTemplate->status == 1) checked @endif>
                        <label for="active_yes">Actief</label>
                        &nbsp;&nbsp;
                        <input id="active_no" name="active" type="radio" value="0" @if($projectTemplate->status != 1) checked @endif>
                        <label for="active_no">Niet actief</label>
                    </div>
                </div>
                <hr>
            </div>
        </div>
        <div class="form-group">
            <h2>Selecteer standaard deelproject templates</h2>
            <select class="selectpicker form-control" name="subprojectTemplates[]" multiple>
                @foreach($subprojectTemplates as $subprojectTemplate)
                    @if($projectTemplate->SubprojectTemplates->find($subprojectTemplate->id))
                        <option value="{{$subprojectTemplate->id}}" selected>{{$subprojectTemplate->name}}</option>
                    @else
                        <option value="{{$subprojectTemplate->id}}">{{$subprojectTemplate->name}}</option>
                    @endif
                @endforeach
            </select>
        </div>
        @include('partials.generalElements.saveButtons', ['value' => 'Wijzig project template'])
        <input type="hidden" name="_token" value="{{csrf_token()}}">
        @if(!empty($update))
            <input type="hidden" name="_method" value="PUT">
        @endif
        <input type="hidden" name="ref" value="{{$ref}}">
    </form>
@stop