flexisip-account-manager/flexiapi/resources/views/admin/account/action/create_edit.blade.php

39 lines
1.3 KiB
PHP

@extends('layouts.main')
@section('breadcrumb')
<li class="breadcrumb-item">
<a href="{{ route('admin.account.index') }}">Accounts</a>
</li>
<li class="breadcrumb-item">
<a href="{{ route('admin.account.edit', $account->id) }}">{{ $account->identifier }}</a>
</li>
<li class="breadcrumb-item active" aria-current="page">
Actions
</li>
@endsection
@section('content')
@if ($action->id)
<h2>Edit an account action</h2>
@else
<h2>Create an account action</h2>
@endif
<form method="POST"
action="{{ $action->id ? route('admin.account.acton.update', [$action->account->id, $action->id]) : route('admin.account.action.store', $account->id) }}"
accept-charset="UTF-8">
@method($action->id ? 'put' : 'post')
@csrf
<div>
<input type="text" name="key" value="{{ $action->key }}" placeholder="action_key">
<label for="key">Key</label>
</div>
<div>
<input type="text" name="code" value="{{ $action->code }}" placeholder="12ab45">
<label for="code">Code</label>
</div>
<div>
<input class="btn btn-success" type="submit" value="{{ $action->id ? 'Update' : 'Create' }}">
</div>
</form>
@endsection