You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
2.6 KiB

<!-- Name Form Input -->
<div class="form-group @if ($errors->has('name')) has-error @endif">
{!! Form::label('name', 'Name') !!}
{!! Form::text('name', isset($organization) ? $organization->name : null, ['class' => 'form-control', 'placeholder' => 'Name']) !!}
@if ($errors->has('name')) <p class="help-block">{{ $errors->first('name') }}</p> @endif
</div>
<div class="form-group @if ($errors->has('logo')) has-error @endif">
{!! Form::label('logo', 'Logo') !!}
@if(isset($organization) && !is_null( $organization->logo)) <img src="{{ $organization->logo}}" width="60px" alt="Logo"> @endif
{!! Form::file('logo', ['class' => 'form-control', 'placeholder' => 'Logo']) !!}
@if ($errors->has('logo')) <p class="help-block">{{ $errors->first('logo') }}</p> @endif
</div>
<div class="form-group @if ($errors->has('hotline')) has-error @endif">
{!! Form::label('hotline', 'Hotline') !!}
{!! Form::text('hotline', isset($organization) ? $organization->hotline : null, ['class' => 'form-control', 'placeholder' => 'Hotline']) !!}
@if ($errors->has('hotline')) <p class="help-block">{{ $errors->first('hotline') }}</p> @endif
</div>
<div class="form-group @if ($errors->has('email')) has-error @endif">
{!! Form::label('email', 'Email') !!}
{!! Form::email('email', isset($organization) ? $organization->email : null, ['class' => 'form-control', 'placeholder' => 'Email']) !!}
@if ($errors->has('email')) <p class="help-block">{{ $errors->first('email') }}</p>
@endif
</div>
<div class="form-group @if ($errors->has('address')) has-error @endif">
{!! Form::label('address', 'Address') !!}
{!! Form::text('address', isset($organization) ? $organization->address : null, ['class' => 'form-control', 'placeholder' => 'Address']) !!}
@if ($errors->has('address')) <p class="help-block">{{ $errors->first('address') }}</p> @endif
</div>
<!-- email Form Input -->
<div class="form-group @if ($errors->has('intro')) has-error @endif">
{!! Form::label('intro', 'Intro') !!}
{!! Form::textarea('intro', null, ['class' => 'form-control', 'placeholder' => 'Description', "rows"=>"4"]) !!}
@if ($errors->has('intro')) <p class="help-block">{{ $errors->first('intro') }}</p> @endif
</div>
<div class="form-group @if ($errors->has('status')) has-error @endif">
{!! Form::label('status', 'Status') !!}
{!! Form::select('status', ['0' => 'Disable', '1' => 'Enable'], isset($organization) ? $organization->status : null, ['class' => 'form-control']) !!}
@if ($errors->has('status')) <p class="help-block">{{ $errors->first('status') }}</p> @endif
</div>