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

Zatca B2C Reports

@php $i=1 @endphp @foreach($erpIntegrations as $erp) @php $i++ @endphp @endforeach
# Invoice No Reservation ID Paid Branch Subtotal VAT Net Total Zatca Serial Number Status Invoice Type Error Action
{{$i}} {{$erp->INVOICE_NUMBER ?? $erp->RESERVATION_ID ?? null}} {{$erp->RESERVATION_ID ?? null}} {{$erp->BRANCH_NAME ?? null}} {{$erp->subtotal ?? null}} {{$erp->vat ?? null}} {{$erp->net_total ?? null}} @if($erp->IS_SUCCESS) {{$erp->INVOICE_SERIAL_NUMBER}} @endif @if($erp->INVOICE_TYPE == 'CREDIT_NOTE') @if($erp->zatca_status_package == 2) Sync @elseif($erp->zatca_status_package == 1) Processing @elseif($erp->zatca_status_package == 3) Not Sync @endif @else @if($erp->ORDER_ZATCA_STATUS == 2) Sync @elseif($erp->ORDER_ZATCA_STATUS == 1) Processing @elseif($erp->ORDER_ZATCA_STATUS == 3) Not Sync @endif @endif {{$erp->INVOICE_TYPE}} @if($erp->INVOICE_TYPE == 'CREDIT_NOTE' && $erp->zatca_status_package == 3 && !empty($erp->RESPONSE)) @elseif($erp->ORDER_ZATCA_STATUS == 3 && !empty($erp->RESPONSE)) @endif @if($erp->INVOICE_TYPE == 'CREDIT_NOTE') @if($erp->IS_SUCCESS == 0 && $erp->zatca_status_package == 3 && $erp->ORDER_ZATCA_STATUS == 2) Re-sync @endif @else @if($erp->IS_SUCCESS == 0 && $erp->ORDER_ZATCA_STATUS == 3) Re-sync @endif @endif
@endsection @section('warehouse_scripts') @include('operations.zatca.script.index') @endsection