@extends('layouts.app') @section('title', __('tms::lang.settings')) @section('content') @include('tms::layouts.nav')

@lang('tms::lang.settings')

{!! Form::open(['url'=>action([\Modules\Tms\Http\Controllers\SettingsController::class,'update']),'method'=>'put']) !!}

@lang('tms::lang.general_settings')

{!! Form::label('ref_prefix', __('tms::lang.ref_prefix').':*') !!} {!! Form::text('ref_prefix', $settings['ref_prefix'] ?? 'TMS', ['class'=>'form-control','required']) !!}
{!! Form::label('default_carrier_id', __('tms::lang.default_carrier').':') !!} {!! Form::select('default_carrier_id', $carriers, $settings['default_carrier_id'] ?? null, ['class'=>'form-control select2','placeholder'=>__('tms::lang.select'),'style'=>'width:100%']) !!}
@if($accounting_enabled)

@lang('tms::lang.accounting_settings')

{!! Form::label('freight_expense_account_id', __('tms::lang.freight_expense_account').':') !!} {!! Form::select('freight_expense_account_id', $accounts, $settings['freight_expense_account_id'] ?? null, ['class'=>'form-control select2','placeholder'=>__('tms::lang.select'),'style'=>'width:100%']) !!}
{!! Form::label('freight_payment_account_id', __('tms::lang.freight_payment_account').':') !!} {!! Form::select('freight_payment_account_id', $accounts, $settings['freight_payment_account_id'] ?? null, ['class'=>'form-control select2','placeholder'=>__('tms::lang.select'),'style'=>'width:100%']) !!}
@else

@lang('tms::lang.accounting_not_enabled')

@endif

@lang('tms::lang.customs_settings')

{!! Form::label('customs_ref_prefix', __('tms::lang.customs_ref_prefix').':') !!} {!! Form::text('customs_ref_prefix', $settings['customs_ref_prefix'] ?? 'CUS', ['class'=>'form-control']) !!}
@if($accounting_enabled)
{!! Form::label('customs_duty_expense_account_id', __('tms::lang.customs_duty_expense_account').':') !!} {!! Form::select('customs_duty_expense_account_id', $accounts, $settings['customs_duty_expense_account_id'] ?? null, ['class'=>'form-control select2','placeholder'=>__('tms::lang.select'),'style'=>'width:100%']) !!}
{!! Form::label('customs_payment_account_id', __('tms::lang.customs_payment_account').':') !!} {!! Form::select('customs_payment_account_id', $accounts, $settings['customs_payment_account_id'] ?? null, ['class'=>'form-control select2','placeholder'=>__('tms::lang.select'),'style'=>'width:100%']) !!}
@endif

@lang('tms::lang.customs_shipment_integration')


@lang('tms::lang.mission_integration')

{!! Form::close() !!}
@endsection