@extends('template_pages.session') @section('page_title', 'Editar NF #' . ($invoice->id ?? '')) @section('page_icon', 'file-text') @section('navbar', 'finance.navbar') @push('styles') @endpush @section('content_page')
{{ csrf_field() }}

Informações Básicas

@php $collaboratorName = $invoice->collaborator->name ?? 'Não informado'; $nfTypeUi = $invoice->origin_type === 'award' ? 'Prêmio' : 'Serviço Prestado'; $monthRef = $invoice->reference_date ? \Carbon\Carbon::parse($invoice->reference_date)->format('m') : null; $yearRef = $invoice->reference_date ? \Carbon\Carbon::parse($invoice->reference_date)->format('Y') : null; $expectedAmountDisplay = \App\Helpers\FormatHelper::decimalToCurrency($invoice->expected_amount ?? 0); @endphp
Colaborador
{{ $collaboratorName }}

Informações da NF

Tipo de Nota Fiscal
{{ $nfTypeUi }}
Mês de Referência @php $monthNames = [ '01' => 'Janeiro', '02' => 'Fevereiro', '03' => 'Março', '04' => 'Abril', '05' => 'Maio', '06' => 'Junho', '07' => 'Julho', '08' => 'Agosto', '09' => 'Setembro', '10' => 'Outubro', '11' => 'Novembro', '12' => 'Dezembro', ]; @endphp
{{ isset($monthRef) ? ($monthNames[$monthRef] ?? 'Não informado') : 'Não informado' }}
Ano de Referência
{{ $yearRef ?? 'Não informado' }}
Arquivo
{{ $fileInfo['filename'] }}
R$
@endsection @push('scripts') @endpush