@extends('layouts.admin') @section('title', trans('general.title.edit', ['type' => trans_choice('general.customers', 1)])) @section('content')
{!! Form::model($customer, [ 'method' => 'PATCH', 'url' => ['incomes/customers', $customer->id], 'role' => 'form' ]) !!}
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }} {{ Form::textGroup('email', trans('general.email'), 'envelope') }} {{ Form::textGroup('tax_number', trans('general.tax_number'), 'percent', []) }} {{ Form::selectGroup('currency_code', trans_choice('general.currencies', 1), 'exchange', $currencies) }} {{ Form::textGroup('phone', trans('general.phone'), 'phone', []) }} {{ Form::textGroup('website', trans('general.website'), 'globe',[]) }} {{ Form::textareaGroup('address', trans('general.address')) }} {{ Form::radioGroup('enabled', trans('general.enabled')) }}
{!! Form::label('create_user', trans('general.create_user'), ['class' => 'control-label']) !!}
@if ($customer->user_id) {{ Form::checkbox('create_user', '1', 1, array('disabled')) }}   {{ trans('general.created_user') }} @else {{ Form::checkbox('create_user', '1') }}   {{ trans('general.create_user') }} @endif
{{ Form::passwordGroup('password', trans('auth.password.current'), 'key', [], null, 'col-md-6 password hidden') }} {{ Form::passwordGroup('password_confirmation', trans('auth.password.current_confirm'), 'key', [], null, 'col-md-6 password hidden') }}
@permission('update-incomes-customers') @endpermission {!! Form::close() !!}
@endsection @push('js') @endpush @push('css') @endpush @push('scripts') @endpush