@extends('app')
{{-- Web site Title --}}
@section('title') Organization :: @parent @stop
@section('content')
{!! Form::model($organization, ['method' => isset($organization) && $organization->id ? 'put' : 'post']) !!}
{!! Form::text('name',
isset($organization) && $organization->name ? $organization->name : old('name'),
['class' => 'form-control',
'id' => 'name', 'Placeholder' => 'Name'])
!!}
{!! $errors->first('name', '
')!!}
{!! Form::select('partner_id', $partners, isset($organization) && $organization->partner_id ? $organization->partner_id : old('partner_id'), ['class' => 'form-control']) !!}
{!! $errors->first('partner_id', '
')!!}
{!! Form::text('no_of_employees',
isset($organization->address) && $organization->address->no_of_employees ? $organization->address->no_of_employees : old('no_of_employees'),
['class' => 'form-control',
'id' => 'no_of_employees'])
!!}
{!! $errors->first('no_of_employees', '
')!!}
{!! Form::date('valid_from',
isset($organization->address) && $organization->address->valid_from ? $organization->address->valid_from : old('valid_from'),
['class' => 'form-control',
'id' => 'valid_from'])
!!}
{!! $errors->first('valid_from', '
')!!}
{!! Form::date('valid_to',
isset($organization->address) && $organization->address->valid_to ? $organization->address->valid_to : old('valid_to'),
['class' => 'form-control',
'id' => 'valid_to'])
!!}
{!! $errors->first('valid_to', '
')!!}
@if(isset($organization) && ($organization->id))
@if(!empty($organization->locations))
@foreach($organization->locations as $location)
@endforeach
@endif
@endif
{!! Form::close() !!}
@endsection
{{-- Scripts --}}
@section('scripts')
@parent
@endsection