@extends('layouts.main')
@section('content')
@include('partials.breadcrumb', ['breadcrumbTitle' => 'Edit Workspace ONE
Credential','parentTitle'=>'Settings','parentUrl'=>'/settings','parentSubTitle'=>'Workspace ONE','parentSubUrl'=>'/workspace-one'])

<div class="wrapper-content">

	<div class="container-fluid">
		<div class="ibox">
			@include('partials.error')
			<div class="ibox-content">

				<form class="form-horizontal" method="post"
					action="{{route('workspace-one.update', ['workspace_one' => $credential->id])}}">

					{{csrf_field()}}

					@method('PUT')

					<div class="form-group">
						<label class="col-lg-3 control-label">Host Name or Server URL</label>
						<div class="col-lg-6">
							<input type="text" class="form-control" name="url" value="{{ old('url',$credential->url) }}">
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-3 control-label">User Name</label>
						<div class="col-lg-6">
							<input type="text" class="form-control" name="user_name"
								value="{{ old('user_name',$credential->user_name) }}">
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-3 control-label">Password</label>
						<div class="col-lg-6">
							<input type="password" class="form-control" name="password" value="{{ old('password') }}">
							<span class="help-block m-b-none">To keep the old password, leave this empty</span>
						</div>
					</div>

					<div class="form-group">
						<label class="col-lg-3 control-label">API Key</label>
						<div class="col-lg-6">
							<input type="password" class="form-control" name="api_key" value="{{ old('api_key') }}">
							<span class="help-block m-b-none">To keep the old API Key, leave this empty</span>
						</div>
					</div>

					<div class="form-group">
						<div class="col-lg-offset-3 col-lg-1">
							<button class="btn btn-primary" name="commit" type="submit">Save</button>
						</div>
					</div>

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

	</div>
</div>
@stop

@section('help-links')
@include('help.help-links',['helpLink'=>config('help-links.help_links.integrations'),'helpTitle'=>config('help-links.help_titles.integrations')])
@endsection


@section('after_scripts')
@include('assets.partials.scripts.common')
@stop