@extends('layouts.'.(isset($layout)?$layout:'app')) @section('pagetitle', ($slave->alias ?: $slave->name) . " - ". __("Slave settings")) @section('breadcrumbs') @endsection @section('content')
@if($box->slavesSettingsSet && auth()->user()->hasPermission( 'access.admin')) @php if( App\User::where('id', $box->slavesSettingsSet->updated_by)->exists()){ $updated_by_name = App\User::find($box->slavesSettingsSet->updated_by)->name ; } else { $updated_by_name = "UNKNOWN"; } @endphp {{ __("Last update (including writeback from box): :timestamp . Last manual change by :name", ['timestamp' => $box->slavesSettingsSet->updated_at,'name' => $updated_by_name]) }} @endif
{{__('Back')}}

@csrf

{{__("Server information")}}

is_cold_shower) checked @endif name="server|slave|is_cold_shower">
@if($slave->controlbox->client->allow_water_usage_calculations || auth()->user()->hasPermission('always_edit_waterusage'))
@endif
@foreach($settings as $option => $val) @unless($option == "name") @if(!array_key_exists($option, \App\SlavesSettingsSet::SETTING_PERMS) || (array_key_exists($option, \App\SlavesSettingsSet::SETTING_PERMS) && \App\SlavesSettingsSet::SETTING_PERMS[$option] != false && auth()->user()->hasPermission(\App\SlavesSettingsSet::SETTING_PERMS[$option]))) @if(!empty($val) && substr($option, -1, 1) != '_')

{{__($option)}}

@endif @endif @endunless @endforeach
@endsection @section("page_js") @endsection