@section('content')

	<div class="col-md-12 col-lg-12">
		<h1><i class="fa fa-cogs"></i> {{ trans('invoice.settings') }}</h1>
	</div>		
	
	<div class="col-md-12 col-lg-12">
		<ul id="solsoTabs" class="nav nav-tabs" role="tablist" id="myTab">
			
			@if ( $app->type == 1 )
			
				<li class="active"><a href="#tab1" role="tab" data-toggle="tab">{{ trans('invoice.my_company') }}</a></li>
				<li><a href="#tab2" role="tab" data-toggle="tab">{{ trans('invoice.logo') }}</a></li>
				<li><a href="#tab3" role="tab" data-toggle="tab">{{ trans('invoice.invoice') }}</a></li>
				<li><a href="#tab4" role="tab" data-toggle="tab">{{ trans('invoice.invoice_tax') }}</a></li>
				<li><a href="#tab5" role="tab" data-toggle="tab">{{ trans('invoice.currencies') }}</a></li>
				<li><a href="#tab6" role="tab" data-toggle="tab">{{ trans('invoice.payments') }}</a></li>
				<li><a href="#tab7" role="tab" data-toggle="tab">{{ trans('invoice.languages') }}</a></li>
				
			@endif
						
			<li {{ $app->type == 2 ? 'class="active"' : '' }}><a href="#tab8" role="tab" data-toggle="tab">{{ trans('invoice.account') }}</a></li>
			<li><a href="#tab9" role="tab" data-toggle="tab">{{ trans('invoice.password') }}</a></li>
			<li><a href="#tab10" role="tab" data-toggle="tab">{{ trans('invoice.application') }}</a></li>
		</ul>
		
		<div class="row tab-content">
		
			@if ( $app->type == 1 )
			
				<div class="tab-pane active" id="tab1">
					@include('settings.company')
				</div>
				
				<div class="tab-pane" id="tab2">
					@include('settings.logo')
				</div>	

				<div class="tab-pane" id="tab3">
					@include('settings.invoice')
				</div>

				<div class="tab-pane" id="tab4">
					@include('settings.tax')
				</div>			
				
				<div class="tab-pane" id="tab5">
					@include('settings.currency')
				</div>	

				<div class="tab-pane" id="tab6">
					@include('settings.payment')
				</div>		

				<div class="tab-pane" id="tab7">
					@include('settings.language')
				</div>					
				
			@endif
			
			<div class="tab-pane {{ $app->type == 2 ? 'active' : '' }}" id="tab8">
				@include('settings.account')
			</div>	

			<div class="tab-pane" id="tab9">
				@include('settings.password')
			</div>	

			<div class="tab-pane" id="tab10">
				@include('settings.application')
			</div>			
		</div>		
	</div>				

	@include('_modals/delete')
		
@stop