@extends('dashboard._theme_dashboard') @section('content')
Detalhes do Pagamento em Lote #{{ $batch->batch_id }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Informações do Lote
ID do Lote: {{ $batch->batch_id }}
Número da Requisição: {{ $batch->request_number }}
Data de Pagamento: {{ $batch->payment_date->format('d/m/Y') }}
Status: @if($batch->status == 'Pending') Pendente @elseif($batch->status == 'Processing') Processando @elseif($batch->status == 'Completed') Concluído @elseif($batch->status == 'Failed') Falha @endif
Data de Criação: {{ $batch->created_at->format('d/m/Y H:i') }}
Detalhes Financeiros
Conta Bancária: {{ $batch->account->account_name ?? 'N/A' }}
Conta de Remessa: {{ $batch->shipmentAccount->shipment_account_name ?? 'N/A' }}
Total de Itens: {{ $batch->total_items }}
Itens Processados: {{ $batch->processed_items }}
Valor Total: {{ $batch->formattedTotalValue() }}
@if($batch->error_message)
Erro no Processamento

{{ $batch->error_message }}

@endif
@if($batch->status == 'Processing')
@csrf
@endif
Itens do Lote
@forelse($batch->items as $item) @empty @endforelse
# Movimento Descrição Código de Barras Valor Identificador de Pagamento Status
{{ $item->item_id }} {{ $item->movement_id }} {{ $item->movement->movement_description ?? 'N/A' }} {{ $item->barcode }} {{ $item->formattedValue() }} {{ $item->payment_identifier ?? 'N/A' }} @if($item->status == 'Pending') Pendente @elseif($item->status == 'Processed') Processado @elseif($item->status == 'Completed') Concluído @elseif($item->status == 'Failed')
Falha @if($item->status_code || $item->error_message)
@if($item->status_code) Código: {{ $item->status_code }}
@endif @if($item->error_message) Erro: {{ $item->error_message }} @endif
@endif
@else {{ $item->status }} @endif
Nenhum item encontrado neste lote.
@endsection @section('js') @endsection