@csrf @if (auth()->user()->isSuperAdmin()) @if (Request::is('admin/headquarters/create'))
{{--
--}} {{-- --}} @if ($errors->has('contractor')) {{ $errors->first('contractor') }} @endif

{{ trans('cruds.headquarter.fields.contractor_helper') }}

@endif @endif
Dados gerais
{{-- NOME --}}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif

{{ trans('cruds.headquarter.fields.name_helper') }}

{{-- RESPONSÁVEL --}}
@if ($errors->has('responsible')) {{ $errors->first('responsible') }} @endif

{{ trans('cruds.headquarter.fields.responsible_helper') }}

{{-- CÓDIGO DA SEDE --}}
@if ($errors->has('headquarter_code')) {{ $errors->first('headquarter_code') }} @endif

{{ trans('cruds.headquarter.fields.responsible_helper') }}

{{-- TELEFONE --}}
@if ($errors->has('telephone')) {{ $errors->first('telephone') }} @endif

{{ trans('cruds.headquarter.fields.telephone_helper') }}

{{-- CELULAR --}}
@if ($errors->has('cellphone')) {{ $errors->first('cellphone') }} @endif

{{ trans('cruds.headquarter.fields.cellphone_helper') }}

{{-- WEBSITE --}}
@if ($errors->has('website')) {{ $errors->first('website') }} @endif

{{ trans('cruds.headquarter.fields.website_helper') }}

@if (Request::is('admin/headquarters/create')) {{-- Sem Logotipo --}} @else @if (!$headquarter->logo == '') @if (file_exists(public_path('/storage/headquarters/' . $headquarter->uuid . '/' . $headquarter->logo))) @else @endif @else @endif @endif
@if ($errors->has('logo')) {{ $errors->first('logo') }} @endif

{{ trans('cruds.headquarter.fields.logo_helper') }}

{{-- ATIVO --}}
active ?? old('active')) == '' ? 'checked' : (($headquarter->active ?? old('active')) == 'on' ? 'checked' : 'unchecked') }}>
@if ($errors->has('active')) {{ $errors->first('active') }} @endif

{{ trans('cruds.headquarter.fields.active_helper') }}

Endereço
{{-- CEP --}}
@if ($errors->has('zip')) {{ $errors->first('zip') }} @endif

{{ trans('cruds.address.fields.zip_helper') }}

{{-- CIDADE --}}
@if ($errors->has('city')) {{ $errors->first('city') }} @endif

{{ trans('cruds.address.fields.city_helper') }}

{{-- UF --}}
@if ($errors->has('state')) {{ $errors->first('state') }} @endif

{{ trans('cruds.address.fields.state_helper') }}

{{-- BAIRRO --}}
@if ($errors->has('district')) {{ $errors->first('district') }} @endif

{{ trans('cruds.address.fields.district_helper') }}

{{-- ENDEREÇO --}}
@if ($errors->has('address')) {{ $errors->first('address') }} @endif

{{ trans('cruds.address.fields.address_helper') }}

{{-- NÚMERO --}}
@if ($errors->has('number')) {{ $errors->first('number') }} @endif

{{ trans('cruds.address.fields.number_helper') }}

{{-- COMPLEMENT --}}
@if ($errors->has('complement')) {{ $errors->first('complement') }} @endif

{{ trans('cruds.address.fields.complement_helper') }}

{{ trans('global.back') }}
@section('scripts') @parent @endsection