@extends('admin.layout.master') @section('content') @php $step = 0; if($info){ if(!$info->csr){ $step = 1; // Generate CSR } else if(!$info->compliance_csid_response){ $step = 2; // Compliance CSID } else if(!$info->production_csid_response){ $step = 3; // Production CSID } else { $step = 4; // Renew } } else{ $step = 1; } @endphp
@include('admin.layout.title_header', ['title'=>'ZATCA Setup'])
@if($info) @php $csr_date = json_decode($info->csr_data); $class = $csr_date->currentEnv == 'core' ? 'text-danger' : ($csr_date->currentEnv == 'simulation' ? 'text-warning' : 'text-success'); $name = $csr_date->currentEnv == 'core' ? 'Production' : ($csr_date->currentEnv == 'simulation' ? 'Simulation' : 'Sandbox'); @endphp

Environment : {{ $name }}

To Change Environment Remove Configuration From zatca_configs Table and Remove Logs From zatca_logs Table

@endif

1 :CSR

Generate CSR & Private Key

2 :Compliance API

Compliance CSID

3 :Production API

Production CSID

@if($step == 1) @include('zatca.setup.csr_request_form') @elseif($step == 2) @include('zatca.setup.compliance_csid_form') @elseif($step == 3)

Before Generating Production CSID, Please Generate Compliance Invoice, Credit Note & Debit Note

Dummy Compliance Invoice Dummy Compliance Credit Note Dummy Compliance Debit Note Generate Production CSID
@endif
@endsection