@extends('companyuser::layouts.master') @section('title', __('companyuser::integration.integration')) @section('breadcrumb') @endsection @section('extra-styles') @endsection @section('content') @include('superadmin::errors.lists') {{-- --}}

@lang('companyuser::integration.integration')

@include('companyuser::errors.all') @include('companyuser::errors.lists')

@lang('companyuser::integration.integration')

@lang('companyuser::integration.zatca.title')

@lang('companyuser::integration.zatca.description')

{{-- Add your own integration START --}}

{{__('companyuser::integration.integration request')}}

{{-- Add your own integration END --}} {{-- List of available integrations --}}
@php // Generate a collection based on the data in the ENUM, We are using groupBy here to generate sub arrays each with its integrations $categories = collect(\App\Enums\IntegrationConfigTypesEnum::INTEGRATION_TYPES_INDEX) ->groupBy('category') ->sortBy(function ($intergation) { return $intergation[0]['order']; }); @endphp {{-- Loop therough the main categories array, this array contains the categories not the integrations --}} @foreach($categories as $categoryArray)

{{ __('companyuser::integration.'.$categoryArray[0]['category']) }}

@forelse($categoryArray as $integration) @if((env('SYNC_INTEGRATED_ORDERS_ON') && env('SYNC_INTEGRATED_'. strtoupper($integration['label']).'_ORDERS_ON')) || !$integration['enabled'])
@if(!$integration['enabled']) @endif

{{__('companyuser::integration.' . $integration['label'])}}

@if($integration['enabled'])
@if(request()->has_applications_integration == 1) @else @endif @if(app()->getlocale() == 'ar') @else @endif
@endif
@endif @empty

Coming Soon ...

@endforelse
@endforeach
@lang('companyuser::sidebar.new')
@php $MarketplaceItems = json_decode(file_get_contents(public_path('marketplace/marketplace.json'))); @endphp
@foreach($MarketplaceItems as $Item)
@if($Item->discountAmount) {{ $Item->discountAmount }} @lang('companyuser::integration.discount') @endif

@if(app()->getlocale() == 'ar') {{ $Item->title_ar }} @else {{ $Item->title_en }} @endif

@endforeach
{{-- confirmation for addvance package modal --}}
@endsection @section('extra_scripts') @endsection