@extends('layouts.app') @section('title', 'BIR Reports') @section('content')

BIR Reports

Compliance-support records generated only from sales finalized while BIR Mode is enabled.

These reports help prepare BIR records but do not replace POS registration, accreditation, taxpayer review, or submission through an official BIR channel.
@component('components.widget', ['class' => 'box-primary', 'title' => 'X Reading — current open register']) @if(empty($register))

No open register was found for your user.

@else

Opened: {{ $register->open_time }}   |   Location: {{ $locationNames[$register->location_id] ?? $register->location_id }}   |   Invoices: {{ $xTotals['transaction_count'] ?? 0 }}

@include('bir.partials.totals', ['totals' => $xTotals])

An X reading is a live view only. It does not close or reset the register.

View / Print X Reading @endif @endcomponent @component('components.widget', ['class' => 'box-info', 'title' => 'Monthly eSales journal export']) {!! Form::open(['url' => action([\App\Http\Controllers\BirComplianceController::class, 'eSalesCsv']), 'method' => 'get']) !!}
{!! Form::label('month', 'Report month:') !!} {!! Form::month('month', now()->format('Y-m'), ['class' => 'form-control', 'required']) !!}
{!! Form::label('location_id', 'Business location:') !!} {!! Form::select('location_id', $locations, null, ['class' => 'form-control select2', 'style' => 'width:100%']) !!}
{!! Form::close() !!} @endcomponent @component('components.widget', ['class' => 'box-success', 'title' => 'Recent Z Readings'])
@forelse($zReadings as $reading) @empty @endforelse
Z No. Closed Location Invoice range Net sales
{{ $reading->bir_z_counter }} {{ $reading->closed_at }} {{ $locationNames[$reading->location_id] ?? $reading->location_id }} {{ $reading->bir_beginning_invoice_no ?: '—' }} – {{ $reading->bir_ending_invoice_no ?: '—' }} {{ number_format($reading->bir_net_sales, 2) }} View / Print
No BIR Z readings yet. A Z reading is created when a BIR-enabled register is closed.
@endcomponent
@endsection @section('javascript') @endsection