Created
April 13, 2016 14:36
-
-
Save ferdiunal/e29392a75f7af1523f1978aa8c3b5a6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="{!! route('admin@settings.general') !!}" method="post" autocomplete="off"> | |
{!! csrf_field() !!} | |
<div class="form-group"> | |
<label for="site_name">Site Adı : </label> | |
<input type="text" class="form-control" id="site_name" name="settings[site_name]" placeholder="Site Adı"> | |
@if($errors->has('settings.site_name')) <span class="help-block">{!! $errors->first('settings.site_name') !!}</span> @endif | |
</div> | |
<div class="form-group"> | |
<label for="site_slogan">Site Sloganı : </label> | |
<input type="text" name="settings[site_slogan]" placeholder="Site Sloganı" id="site_slogan" class="form-control"> | |
@if($errors->has('settings.site_slogan')) <span class="help-block">{!! $errors->first('settings.site_slogan') !!}</span> @endif | |
</div> | |
<div class="form-group"> | |
<label for="date_format">Tarih Biçimi</label> | |
<select name="settings[date_format]" id="date_format" class="form-control"> | |
<option value="j F Y">{!! carbon()->format('j F Y') !!}</option> | |
<option value="Y-m-d">{!! carbon()->format('Y-m-d') !!}</option> | |
<option value="m/d/Y">{!! carbon()->format('m/d/Y') !!}</option> | |
<option value="d/m/Y">{!! carbon()->format('d/m/Y') !!}</option> | |
</select> | |
@if($errors->has('settings.date_format')) <span class="help-block">{!! $errors->first('settings.date_format') !!}</span> @endif | |
</div> | |
<div class="form-group"> | |
<label for="time_format">Saat Biçimi</label> | |
<select name="settings[time_format]" id="time_format" class="form-control"> | |
<option value="H:i">{!! carbon()->format('H:i') !!}</option> | |
<option value="g:i A">{!! carbon()->format('g:i A') !!}</option> | |
</select> | |
@if($errors->has('settings.time_format')) <span class="help-block">{!! $errors->first('settings.time_format') !!}</span> @endif | |
</div> | |
<div class="form-group"> | |
<button class="btn btn-primary" type="submit">Güncelle</button> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment