@extends('layouts.dashboard') @section('title', __('agency.edit')) @section('content-dashboard')
{{ Form::open(['route' => 'users.agency.update', 'method' => 'patch']) }}
{{ __('agency.detail') }} {!! FormField::text('name', ['value' => Option::get('agency_name')]) !!} {!! FormField::text('tagline', ['value' => Option::get('agency_tagline')]) !!} {{ Form::submit(__('agency.update'), ['class' => 'btn btn-info']) }} {{ link_to_route('users.agency.show', __('app.cancel'), [], ['class' => 'btn btn-default']) }}

{{ __('contact.contact') }}
{!! FormField::email('email', ['value' => Option::get('agency_email')]) !!}
{!! FormField::text('phone', ['value' => Option::get('agency_phone')]) !!}
{!! FormField::textarea('address', ['value' => Option::get('agency_address')]) !!}
{!! FormField::text('city', ['value' => Option::get('agency_city')]) !!}
{!! FormField::text('website', ['value' => Option::get('agency_website')]) !!}
{!! FormField::text('tax_id', ['label' => __('agency.tax_id'), 'value' => Option::get('agency_tax_id')]) !!}
{{ Form::close() }}
{{ Form::open(['route' => 'users.agency.logo-upload', 'method' => 'patch', 'files' => true]) }} {{ __('agency.logo') }}

{!! app_logo_image(['style' => 'margin:20px auto']) !!}

{!! FormField::file('logo', [ 'label' => __('agency.logo_change'), 'info' => ['text' => __('agency.logo_upload_info'), 'class' => 'warning'], ]) !!} {{ Form::submit(__('agency.logo_upload'), ['class' => 'btn btn-default']) }} {{ Form::close() }}
@endsection