<link rel="stylesheet" href="/modules/print-suppliers/css/fulfill.css?v=<?= $printSupplierSourceVersion ?>">
<link rel="stylesheet" href="/modules/print-suppliers/css/custom-fulfillment.css?v=<?= $printSupplierSourceVersion ?>">
<link rel="stylesheet" href="/modules/pod/css/jquery.magnify.css?v=<?= $printSupplierSourceVersion ?>">

<script src="/modules/pod/js/jquery.magnify.js"></script>
<script src="{{ asset('js/axios.v1.min.js') }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/4.5.0/fabric.min.js"></script>
<script src="/modules/print-suppliers/js/fulfill-base.js?v=<?= $printSupplierSourceVersion ?>"></script>

<script>
    var user_email = '{{ (isset($configs['user_email']))? $configs['user_email'] : '' }}';
    var printerval_locate = '{{ (isset($currentLocale))? $currentLocale : '' }}';
    var baseUrl = '{{ URL::to('/') }}';
</script>

@if (isset($configs['printify']))
@php
    // remove token from frontend
    foreach($configs['printify'] as &$config) {
        unset($config['api_token']);
    }
@endphp
<script>
    const printifyConfigs = {
        apiPrefix: '/print-suppliers/supplier/printify/',
        base_api: 'https://api.printify.com/v1/',
        accounts: <?= json_encode($configs['printify']) ?>
    };
</script>
<script src="/modules/print-suppliers/js/printify-fulfill-controller.js?v=<?= $printSupplierSourceVersion ?>"></script>
@endif

@if (isset($configs['gelato']))
<script>
    const gelatoConfigs = {
        api_token: '{{ $configs['gelato']['api_token'] }}',
        base_api: 'https://product.gelatoapis.com/v3',
    };
</script>
<script src="/modules/print-suppliers/js/gelato-fulfill-controller.js?v=<?= $printSupplierSourceVersion ?>"></script>
@endif

<script>
    const printLogisticConfigs = {
        base_api: 'https://api.smartfactore.eu/printerval',
    };
</script>
<script src="/modules/print-suppliers/js/print-logistic-fulfill-controller.js?v=<?= $printSupplierSourceVersion ?>"></script>

<script>
    const bondreConfigs = {
        
    };

</script>
<script src="/modules/print-suppliers/js/bondre-fulfill-controller.js?v=<?= $printSupplierSourceVersion ?>"></script>

<script>
    const merchizeConfigs = {
        
    };
</script>
<script src="/modules/print-suppliers/js/merchize-fulfill-controller.js?v=<?= $printSupplierSourceVersion ?>"></script>

<script>
    const luxPConfigs = {
        
    };
</script>
<script src="/modules/print-suppliers/js/pro-luxury-fulfill-controller.js?v=<?= $printSupplierSourceVersion ?>"></script>

<script>
    const teezilyConfigs = {
        
    };
</script>
<script src="/modules/print-suppliers/js/teezily-fulfill-controller.js?v=<?= $printSupplierSourceVersion ?>"></script>
