@extends('operations.layout.mainlayout') @section('content')

Zatca B2B Reports

@php $i=1 @endphp @foreach($erpIntegrations as $erp) @php $i++ @endphp @endforeach
# Invoice ID Subtotal VAT Net Total Zatca Serial Number Status Invoice Type XML File Error Action
{{$i}} {{$erp->B2B_INVOICE_ID ?? null}} {{$erp->subtotal ?? null}} {{$erp->vat ?? null}} {{$erp->net_total ?? null}} @if($erp->IS_SUCCESS) {{$erp->INVOICE_SERIAL_NUMBER}} @endif @if($erp->STATUS == 2) Sync @elseif($erp->STATUS == 1) Processing @elseif($erp->STATUS == 3) Not Sync @endif {{$erp->INVOICE_TYPE}} @if(!empty($erp->INVOICE_XML)) @endif @if($erp->STATUS == 3 && !empty($erp->RESPONSE)) @endif @if($erp->IS_SUCCESS == 0 && in_array($erp->STATUS,[3,5])) Re-sync @endif
@endsection @section('warehouse_scripts') @include('operations.zatca.script.index') @endsection