<?php
@extends('layouts.app')
@section('breadcrumb')
<ul class="breadcrumb">
<li>
<a href="{{route('get.dashboard')}}" title="{{trans('breadcrumb.dashboard')}}">
<span class="lnr lnr-home"></span> {{trans('breadcrumb.dashboard')}}
</a>
</li>
<li>
<a href="{{route('companies::list')}}" title="{{trans('breadcrumb.companies')}}">{{trans('breadcrumb.companies')}}</a>
</li>
<li>{{trans('breadcrumb.edit_company')}}</li>
</ul>
@stop
@section('content')
<div class="row">
<div class="col-sm-12">
@if(Session::get("ErrorMessage"))
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<strong>{{trans('messages.failure_header')}}</strong>
{{Session::get("ErrorMessage")}}
</div>
@endif
<div class="panel panel-flat">
<div class="panel-heading">
<h5>{!! trans('companies.edit_panel_title') !!}</h5>
</div>
<div class="panel-body">
{{Form::model($Company,['class'=>'form-horizontal'])}}
<fieldset class="content-group">
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('companies.title')}}
</label>
<div class="col-lg-10">
{{Form::text('Title',null,['placeholder'=>'Example Company Inc.','class'=>'form-control'])}}
@if($errors->has('Title'))
<small>{{$errors->first('Title')}}</small>
@endif
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('companies.address')}}
</label>
<div class="col-lg-5">
{{Form::text('Address1',null,['placeholder'=>'Address Line 1','class'=>'form-control'])}}
@if($errors->has('Address1'))
<small>{{$errors->first('Address1')}}</small>
@endif
</div>
<div class="col-lg-5">
{{Form::text('Address2',null,['placeholder'=>'Address Line 2','class'=>'form-control'])}}
@if($errors->has('Address2'))
<small>{{$errors->first('Address2')}}</small>
@endif
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('companies.city')}}
</label>
<div class="col-lg-4">
{{Form::text('City',null,['placeholder'=>'Eg: New York','class'=>'form-control'])}}
@if($errors->has('City'))
<small>{{$errors->first('City')}}</small>
@endif
</div>
<label class="control-label col-lg-2">
{{trans('companies.country')}}
</label>
<div class="col-lg-4">
{{Form::select('CountryID',$Countries,null,['placeholder'=>'Select Country...','class'=>'form-control'])}}
@if($errors->has('CountryID'))
<small>{{$errors->first('CountryID')}}</small>
@endif
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('companies.zipcode')}}
</label>
<div class="col-lg-4">
{{Form::text('ZipCode',null,['placeholder'=>'Eg: 35530 XY','class'=>'form-control'])}}
@if($errors->has('ZipCode'))
<small>{{$errors->first('ZipCode')}}</small>
@endif
</div>
<label class="control-label col-lg-2">
{{trans('companies.phone')}}
</label>
<div class="col-lg-4">
{{Form::text('Phone',null,['placeholder'=>'Contact Phone','class'=>'form-control'])}}
@if($errors->has('Phone'))
<small>{{$errors->first('Phone')}}</small>
@endif
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('companies.contact_person')}}
</label>
<div class="col-lg-10">
{{Form::text('ContactPerson',null,['placeholder'=>'John Doe','class'=>'form-control'])}}
@if($errors->has('ContactPerson'))
<small>{{$errors->first('ContactPerson')}}</small>
@endif
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-2">
{{trans('companies.email')}}
</label>
<div class="col-lg-10">
{{Form::text('Email',null,['placeholder'=>'example@exampledomain.com','class'=>'form-control'])}}
@if($errors->has('Email'))
<small>{{$errors->first('Email')}}</small>
@endif
</div>
</div>
</fieldset>
<div class="text-right">
<button type="submit" class="btn m-b-xs btn-sm btn-primary btn-addon pull-right">
<i class="lnr lnr-apartment"></i>
{{trans('companies.update_company')}}
</button>
</div>
{{Form::close()}}
</div>
</div>
</div>
</div>
@stop
?>