2013-11-26 13:45:07 +01:00
|
|
|
@extends('accounts.nav')
|
|
|
|
|
|
|
|
@section('content')
|
2013-12-07 19:45:00 +01:00
|
|
|
@parent
|
|
|
|
|
2013-11-26 13:45:07 +01:00
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
#logo {
|
|
|
|
padding-top: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
2014-04-17 16:48:56 +02:00
|
|
|
{{ Former::open_for_files()->addClass('col-md-10 col-md-offset-1 warn-on-exit')->rules(array(
|
2013-11-26 13:45:07 +01:00
|
|
|
'name' => 'required',
|
|
|
|
'email' => 'email|required'
|
2014-04-18 10:57:31 +02:00
|
|
|
)) }}
|
2013-11-26 13:45:07 +01:00
|
|
|
|
2014-01-15 15:01:24 +01:00
|
|
|
{{ Former::populate($account) }}
|
2014-09-14 13:39:15 +02:00
|
|
|
@if ($showUser)
|
|
|
|
{{ Former::populateField('first_name', $account->users()->first()->first_name) }}
|
|
|
|
{{ Former::populateField('last_name', $account->users()->first()->last_name) }}
|
|
|
|
{{ Former::populateField('email', $account->users()->first()->email) }}
|
|
|
|
{{ Former::populateField('phone', $account->users()->first()->phone) }}
|
|
|
|
@endif
|
|
|
|
|
2013-11-29 13:09:21 +01:00
|
|
|
<div class="row">
|
2014-02-18 16:07:22 +01:00
|
|
|
<div class="col-md-5">
|
2013-11-26 13:45:07 +01:00
|
|
|
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::legend('details') }}
|
2013-11-29 13:09:21 +01:00
|
|
|
{{ Former::text('name') }}
|
2014-10-01 16:33:09 +02:00
|
|
|
{{ Former::text('vat_number') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::text('work_email') }}
|
|
|
|
{{ Former::text('work_phone') }}
|
|
|
|
{{ Former::file('logo')->max(2, 'MB')->accept('image')->inlineHelp(trans('texts.logo_help')) }}
|
2013-11-29 13:09:21 +01:00
|
|
|
|
|
|
|
@if (file_exists($account->getLogoPath()))
|
|
|
|
<center>
|
2014-03-18 19:55:50 +01:00
|
|
|
{{ HTML::image($account->getLogoPath(), "Logo") }}
|
2014-04-01 12:30:43 +02:00
|
|
|
<a href="#" onclick="deleteLogo()">{{ trans('texts.remove_logo') }}</a>
|
2014-02-18 22:56:18 +01:00
|
|
|
</center><br/>
|
2013-11-29 13:09:21 +01:00
|
|
|
@endif
|
2013-11-26 13:45:07 +01:00
|
|
|
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::select('size_id')->addOption('','')
|
2014-02-18 22:56:18 +01:00
|
|
|
->fromQuery($sizes, 'name', 'id') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::select('industry_id')->addOption('','')
|
2014-02-18 22:56:18 +01:00
|
|
|
->fromQuery($industries, 'name', 'id') }}
|
|
|
|
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::legend('address') }}
|
|
|
|
{{ Former::text('address1') }}
|
|
|
|
{{ Former::text('address2') }}
|
2013-11-29 13:09:21 +01:00
|
|
|
{{ Former::text('city') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::text('state') }}
|
2013-11-29 13:09:21 +01:00
|
|
|
{{ Former::text('postal_code') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::select('country_id')->addOption('','')
|
2014-01-06 19:03:00 +01:00
|
|
|
->fromQuery($countries, 'name', 'id') }}
|
2013-11-26 13:45:07 +01:00
|
|
|
|
2013-11-29 13:09:21 +01:00
|
|
|
</div>
|
2013-11-26 13:45:07 +01:00
|
|
|
|
2014-02-18 16:07:22 +01:00
|
|
|
<div class="col-md-5 col-md-offset-1">
|
2013-11-26 13:45:07 +01:00
|
|
|
|
2014-09-14 13:39:15 +02:00
|
|
|
@if ($showUser)
|
|
|
|
{{ Former::legend('users') }}
|
|
|
|
{{ Former::text('first_name') }}
|
|
|
|
{{ Former::text('last_name') }}
|
|
|
|
{{ Former::text('email') }}
|
|
|
|
{{ Former::text('phone') }}
|
|
|
|
@endif
|
2014-01-06 19:03:00 +01:00
|
|
|
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::legend('localization') }}
|
|
|
|
{{ Former::select('language_id')->addOption('','')
|
2014-03-27 13:25:31 +01:00
|
|
|
->fromQuery($languages, 'name', 'id') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::select('currency_id')->addOption('','')
|
2014-02-18 16:07:22 +01:00
|
|
|
->fromQuery($currencies, 'name', 'id') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::select('timezone_id')->addOption('','')
|
2014-02-18 16:07:22 +01:00
|
|
|
->fromQuery($timezones, 'location', 'id') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::select('date_format_id')->addOption('','')
|
2014-02-18 16:07:22 +01:00
|
|
|
->fromQuery($dateFormats, 'label', 'id') }}
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Former::select('datetime_format_id')->addOption('','')
|
2014-02-18 16:07:22 +01:00
|
|
|
->fromQuery($datetimeFormats, 'label', 'id') }}
|
|
|
|
|
2014-01-06 19:03:00 +01:00
|
|
|
|
2013-11-29 13:09:21 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-12-03 23:00:01 +01:00
|
|
|
<center>
|
2014-04-01 12:30:43 +02:00
|
|
|
{{ Button::lg_success_submit(trans('texts.save'))->append_with_icon('floppy-disk') }}
|
2013-12-03 23:00:01 +01:00
|
|
|
</center>
|
|
|
|
|
2013-11-26 13:45:07 +01:00
|
|
|
{{ Former::close() }}
|
|
|
|
|
2014-03-18 19:55:50 +01:00
|
|
|
{{ Form::open(['url' => 'remove_logo', 'class' => 'removeLogoForm']) }}
|
|
|
|
{{ Form::close() }}
|
|
|
|
|
|
|
|
|
2013-11-28 22:10:01 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
$('#country_id').combobox();
|
|
|
|
});
|
|
|
|
|
2014-03-18 19:55:50 +01:00
|
|
|
function deleteLogo() {
|
2014-04-01 12:30:43 +02:00
|
|
|
if (confirm("{{ trans('texts.are_you_sure') }}")) {
|
2014-03-18 19:55:50 +01:00
|
|
|
$('.removeLogoForm').submit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-11-28 22:10:01 +01:00
|
|
|
</script>
|
2013-11-26 13:45:07 +01:00
|
|
|
|
|
|
|
@stop
|