@extends('layouts.app') @section('title', 'GSTR-1 Report') @section('content')

GSTR-1 Report Outward Supplies

@component('components.widget', ['class' => 'box-primary'])
{!! Form::label('month', 'Month:') !!} {!! Form::selectMonth('month', $report['month'] ?? now()->month, ['class' => 'form-control', 'id' => 'month']) !!}
{!! Form::label('year', 'Year:') !!} {!! Form::selectRange('year', date('Y') - 5, date('Y') + 1, $report['year'] ?? now()->year, ['class' => 'form-control', 'id' => 'year']) !!}

@if(auth()->user()->can('accountingreports.export_gst_reports')) Export @endif
@endcomponent
B2B Invoices {{ count($report['b2b']['invoices'] ?? []) }}
B2C Large {{ count($report['b2cl']['invoices'] ?? []) }}
Total Taxable Value @format_currency($report['summary']['total_taxable_value'] ?? 0)
Total Tax @format_currency($report['summary']['total_tax'] ?? 0)
@if(!empty($report['b2b']['invoices']))

B2B Invoices (Business to Business)

@foreach($report['b2b']['invoices'] as $invoice) @endforeach
Invoice No Invoice Date Customer Name GSTIN Taxable Value CGST SGST IGST Total Tax Invoice Value
{{ $invoice['invoice_no'] ?? 'N/A' }} {{ @format_date($invoice['invoice_date'] ?? null) }} {{ $invoice['customer_name'] ?? 'N/A' }} {{ $invoice['gstin'] ?? 'N/A' }} @format_currency($invoice['taxable_value'] ?? 0) @format_currency($invoice['cgst'] ?? 0) @format_currency($invoice['sgst'] ?? 0) @format_currency($invoice['igst'] ?? 0) @format_currency($invoice['total_tax'] ?? 0) @format_currency($invoice['invoice_value'] ?? 0)
Total @format_currency($report['b2b']['total_taxable_value'] ?? 0) @format_currency(collect($report['b2b']['invoices'] ?? [])->sum('cgst')) @format_currency(collect($report['b2b']['invoices'] ?? [])->sum('sgst')) @format_currency(collect($report['b2b']['invoices'] ?? [])->sum('igst')) @format_currency($report['b2b']['total_tax'] ?? 0) @format_currency(collect($report['b2b']['invoices'] ?? [])->sum('invoice_value'))
@endif @if(!empty($report['b2cl']['invoices']))

B2C Large Invoices (> ₹2.5 Lakhs)

@foreach($report['b2cl']['invoices'] as $invoice) @endforeach
Invoice No Invoice Date Customer Name Taxable Value Total Tax Invoice Value
{{ $invoice['invoice_no'] ?? 'N/A' }} {{ @format_date($invoice['invoice_date'] ?? null) }} {{ $invoice['customer_name'] ?? 'N/A' }} @format_currency($invoice['taxable_value'] ?? 0) @format_currency($invoice['total_tax'] ?? 0) @format_currency($invoice['invoice_value'] ?? 0)
@endif @if(!empty($report['b2cs']))

B2C Small Invoices Summary (≤ ₹2.5 Lakhs)

{{ $report['b2cs']['total_invoices'] ?? 0 }}
Total Invoices
@format_currency($report['b2cs']['taxable_value'] ?? 0)
Taxable Value
@format_currency($report['b2cs']['total_tax'] ?? 0)
Total Tax
@format_currency($report['b2cs']['invoice_value'] ?? 0)
Invoice Value
@endif
@endsection @section('javascript') @endsection