@extends('layouts.dashboard')
@section('title', 'PDF Uploads')
@section('page-title', 'PDF Uploads')
@section('content')
Upload PDF
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if(isset($message) && $message)
{{ $message }}
@endif
@if(isset($filename) && $filename)
File: {{ $filename }}
@endif
@if(isset($invoiceData) && is_array($invoiceData) && count($invoiceData))
Extracted Invoice Data
| # |
SO No |
Item Name |
Category |
HSN |
Qty |
Rate |
@php
$soNo = isset($filename) ? pathinfo($filename, PATHINFO_FILENAME) : '';
@endphp
@foreach($invoiceData as $row)
| {{ $row['sr_no'] ?? '' }} |
{{ $soNo }} |
{{ $row['item_name'] ?? '' }} |
{{ $row['category'] ?? '' }} |
{{ $row['hsn'] ?? '' }} |
{{ $row['qty'] ?? '' }} |
{{ $row['rate'] ?? '' }} |
@endforeach
@endif
@if(isset($invoiceData) && is_array($invoiceData) && count($invoiceData) && !empty($apiTimestamp))
@endif
@if(isset($invoiceData) && is_array($invoiceData) && count($invoiceData))
@endif
@endsection