@use('App\Services\Date') @extends('companyuser::layouts.master') @section('title', __('purchases::expenses.create_expense')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content')
@csrf
@if(!$currentFiscalYear)
@lang('superadmin::Dashboard.Please set your ') @lang('settings::general_settings.accounting settings')   @lang('superadmin::Dashboard.to start adding accounting transactions')
@endif
{{-- @include('companyuser::errors.all') --}} @include('companyuser::errors.operation-locked') @include('companyuser::errors.lists') @error('remaining')

{{ $message }}

@enderror @error('attachment_id') @enderror @if($remaining)
@error('code') @enderror
( @lang('optional') )
@error('description')

{{ $message }}

@enderror
@error('cost_center_id')

{{ $message }}

@enderror
@error('payee') @enderror
@error('payment_account') @enderror
@error('date') @enderror @error('current_fiscal_year_id') @enderror
@error('products.*')

{{ $message }}

@enderror @error('products')

{{ $message }}

@enderror
@if( $customFields->count() )
@foreach($customFields as $key=>$field)
@if($field['type']=='checkbox') @else @endif
@endforeach
@endif
@error('terms') @enderror
@error('notes') @enderror
@if(!old('attachment_id') && !request('attachment_id')) @endif
@else @include('info.limit_reached') @endif
@endsection @section('extra_scripts') @endsection