@extends('companyuser::layouts.master') @section('title',__('companyuser::integration.failed synced orders')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content')

{{__('companyuser::integration.failed synced orders')}}:

@if(env('SYNC_INTEGRATED_ORDERS_ON') && env('SYNC_INTEGRATED_' . strtoupper($source) . '_ORDERS_ON') && $integrationConfig)
@include('superadmin::errors.lists')
@foreach($failedOrders as $order) {{-- why the sync refused the order; empty for orders that failed before reasons were recorded --}} @if($order->journal_entry_id) @else @endif @endforeach
@lang('companyuser::integration.order id') @lang('companyuser::integration.order total') @lang('companyuser::integration.total tax') @lang('companyuser::integration.total cost') @lang('companyuser::integration.order type') @lang('companyuser::integration.order date') @lang('companyuser::integration.customer') @lang('companyuser::integration.supplier') @lang('companyuser::integration.failure reason') @lang('Actions')
{{$order->order_id}} {{number_format($order->sub_total,2)}} {{number_format($order->total_tax,2)}} {{number_format($order->total_cost,2)}} {{__('companyuser::integration.' . $order->transaction_type)}} {{$order->order_date}}{{ \App\Services\Date::format($order->order_date, 'date')}} {{($order->customer_id ? $order->customer->name : '')}} {{($order->supplier_id ? $order->supplier->name : '')}}{{ $order->failure_reason ?: '—' }} @can('accounting.manual-journal-entries.delete') @endcan @can('accounting.manual-journal-entries.create') @endcan
@else
@lang('companyuser::integration.integration is not available currently')
@endif
@endsection @section('extra_scripts') @endsection