@extends("admin.template") @section('content')

{{ucfirst($action)}} Company

{!! csrf_field() !!}
{{Form::text('name', $company->name, ['class'=>'form-control', 'maxlength'=>50])}}
{{Form::text('code', $company->code, ['class'=>'form-control', 'maxlength'=>10])}}
@if($action == 'update')
{{ $company->uen }}
@else {{Form::text('uen', $company->uen, ['class'=>'form-control', 'maxlength'=>20])}} @endif
{{Form::text('registered_name', $company->registered_name, ['class'=>'form-control', 'maxlength'=>100])}}
{{Form::select('stat', CompanyStat::$values, $company->stat, ['class'=>'form-control'])}}
{{Form::textarea('addr', $company->addr, ['class'=>'form-control', 'rows'=>3, 'maxlength'=>200])}}
{{Form::text('postal', $company->postal, ['class'=>'form-control', 'maxlength'=>20])}}
{{Form::text('country', $company->country, ['class'=>'form-control', 'maxlength'=>50])}}
{{Form::text('industry', $company->industry, ['class'=>'form-control'])}}
@if($company->membership_type != MembershipType::Unlimited)
{{Form::text('membership_valid_till', ViewHelper::formatDate($company->membership_valid_till), ['class'=>'form-control datepicker', 'placeholder'=>''])}}
@endif
@if($action == 'update')
@foreach($offices as $o) @endforeach
{{ $o->name }}
@endif
@endsection