Translation

This commit is contained in:
Frank 2023-06-05 15:38:52 +02:00
parent 179e3cc4d4
commit 14ec3b12cc
2 changed files with 12 additions and 6 deletions

View File

@ -136,6 +136,12 @@ return [
'Last 24 hours' => 'Last 24 hours+', 'Last 24 hours' => 'Last 24 hours+',
'Active users:' => 'Active users:+', 'Active users:' => 'Active users:+',
'Title' => 'Title';,
'Link' => 'Link*';,
'Button' => 'Button*',
'custom' => 'custom';,
'custom_website' => 'custom_website';,
'' => '+', '' => '+',

View File

@ -2,23 +2,23 @@
@section('content') @section('content')
<h2 class="mb-4"><i class="bi bi-plus"> Add Link</i></h2> <h2 class="mb-4"><i class="bi bi-plus">{{__('messages.Add Link')}}</i></h2>
<form action="{{ route('addLink') }}" method="post"> <form action="{{ route('addLink') }}" method="post">
@csrf @csrf
<div class="form-group col-lg-8"> <div class="form-group col-lg-8">
<label>Link*</label> <label>{{__('messages.Link')}}</label>
<input type="text" name="link" class="form-control" placeholder="https://example.com" required> <input type="text" name="link" class="form-control" placeholder="https://example.com" required>
</div> </div>
<div class="form-group col-lg-8"> <div class="form-group col-lg-8">
<label>Title</label> <label>{{__('messages.Title')}}</label>
<input type="text" name="title" class="form-control" placeholder="Internal name (optional)"> <input type="text" name="title" class="form-control" placeholder="Internal name (optional)">
</div> </div>
<div class="form-group col-lg-8"> <div class="form-group col-lg-8">
<label for="exampleFormControlSelect1">Button*</label> <label for="exampleFormControlSelect1">{{__('messages.Button')}}</label>
<select class="form-control" name="button"> <select class="form-control" name="button">
<option style="background-color:#ffe8e4;"> custom </option> <option style="background-color:#ffe8e4;"> {{__('messages.custom')}} </option>
<option style="background-color:#ffe8e4;"> custom_website </option> <option style="background-color:#ffe8e4;"> {{__('messages.custom_website')}} </option>
@foreach($buttons as $button) @foreach($buttons as $button)
@if (!in_array($button->name, ['custom', 'custom_website', 'heading', 'space'])) @if (!in_array($button->name, ['custom', 'custom_website', 'heading', 'space']))
<option> {{ $button->name }} </option> <option> {{ $button->name }} </option>