@extends('header') @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_IMPORT_EXPORT]) {!! Former::open_for_files('settings/' . ACCOUNT_MAP) !!}

{!! trans('texts.import_clients') !!}

{!! Former::file('file')->label(trans('texts.csv_file')) !!} {!! Former::actions( Button::info(trans('texts.upload'))->submit()->large()->appendIcon(Icon::create('open'))) !!}
{!! Former::close() !!} {!! Former::open_for_files('settings/' . IMPORT_FROM_FRESHBOOKS) !!}

{!! trans('texts.import_from_freshbooks') !!}

{!! Former::file('client_file')->label(trans('texts.csv_client_file')) !!} {!! Former::file('invoice_file')->label(trans('texts.csv_invoice_file')) !!} {!! Former::file('timesheet_file')->label(trans('texts.csv_timesheet_file')) !!} {!! Former::actions( Button::info(trans('texts.upload'))->submit()->large()->appendIcon(Icon::create('open'))) !!}
{!! Former::close() !!} {!! Former::open('/export') !!}

{!! trans('texts.export_data') !!}

{!! Former::select('format') ->onchange('setEntityTypesVisible()') ->addOption('CSV', 'CSV') ->addOption('XLS', 'XLS') ->addOption('JSON', 'JSON') ->style('max-width: 200px') !!} {!! Former::checkbox('entity_types') ->label('include') ->addGroupClass('entity-types') ->checkboxes([ trans('texts.clients') => array('name' => ENTITY_CLIENT, 'value' => 1), trans('texts.tasks') => array('name' => ENTITY_TASK, 'value' => 1), trans('texts.invoices') => array('name' => ENTITY_INVOICE, 'value' => 1), trans('texts.payments') => array('name' => ENTITY_PAYMENT, 'value' => 1), ])->check(ENTITY_CLIENT)->check(ENTITY_TASK)->check(ENTITY_INVOICE)->check(ENTITY_PAYMENT) !!} {!! Former::actions( Button::primary(trans('texts.download'))->submit()->large()->appendIcon(Icon::create('download-alt'))) !!}
{!! Former::close() !!} {!! Former::open('settings/cancel_account')->addClass('cancel-account') !!}

{!! trans('texts.cancel_account') !!}

{!! Former::actions( Button::danger(trans('texts.cancel_account'))->large()->withAttributes(['onclick' => 'showConfirm()'])->appendIcon(Icon::create('trash'))) !!}
{!! Former::close() !!} @stop