@extends('layouts.app') @section('title', isset($payable) ? __('payables.edit_title') : __('payables.create_title')) @section('breadcrumbs') @endsection @section('content')
@csrf @method('POST') @if (isset($payable)) @endif @php // Garantir que temos o CNPJ/CPF do cliente correto $clientIdentifier = ''; if (isset($payable) && $payable->client_id) { $client = \App\Models\Client::find($payable->client_id); if ($client && $client->person_id) { $clientPerson = \App\Models\Person::find($client->person_id); if ($clientPerson) { $clientIdentifier = $clientPerson->cnpj ?: $clientPerson->cpf; } } } @endphp
{{-- Data de competência --}}
{{-- Tipo de documento (Select) --}}
{{-- Número do documento --}}
{{-- Série da nota --}}
{{-- Linha digitável --}}
{{ __('payables.help.document_attachments') }}
@if (isset($payable->attachments['documents']) && count($payable->attachments['documents']) > 0)
{{ __('payables.existing_documents') }}:
@foreach ($payable->attachments['documents'] as $document)
{{ $document['original_name'] ?? basename($document['path']) }} {{ isset($document['size']) ? number_format($document['size'] / 1024, 1) . ' KB' : '' }}
@endforeach
@endif
{{ \App\Helpers\CurrencyConfig::getConfig()['symbol'] }}
{{ \App\Helpers\CurrencyConfig::getConfig()['symbol'] }}
{{ \App\Helpers\CurrencyConfig::getConfig()['symbol'] }}
{{ \App\Helpers\CurrencyConfig::getConfig()['symbol'] }}
{{ __('payables.help.net_amount') }}
{{ __('payables.help.payment_date') }}
{{ __('payables.installments.form_help') }}
{{-- conta bancária --}}
{{ __('common.back') }}
@endsection @section('scripts') @endsection