0, 'supplier' => 1, 'warehouse' => 2, 'forwarder' => 3, 'order' => 4, 'driver' => 5, ]; //excel file extension public const EXCEL_FILE_EXTENSION = 'xlsx'; public const EXCEL_FILE_ENCODED_EXTENSION = 'vnd.openxmlformats-officedocument.spreadsheetml.sheet'; public const UPLOAD_PATH = 'uploads/'; public const DELETE_PATH = 'deleted/'; public const DOCUMENT_TYPES = [ 'registration_certificate' => [ 'id' => 0, 'path' => 'registration_certificates/', 'multiple' => true ], 'logo' => [ 'id' => 1, 'path' => 'logo/', 'multiple' => false ] ]; public const COMPANY_DOCUMENTS = ['registration_certificate', 'logo']; public const ADDRESS_FIELDS = ['street_one', 'street_two', 'city', 'state', 'country', 'post_code']; public const ORDER_PROCESSING_STEP = 'PS_PROCESSING'; public const ORDER_SHIPPING_STEP = 'PS_SHIPPING'; public const ORDER_DELIVERY_STEP = 'PS_DELIVERY'; public const ORDER_MODULE_WAREHOUSE = 'WAREHOUSE'; public const ORDER_WAREHOUSE_RECEIVING_STEP = 'MS_WAREHOUSE_RECEIVING'; public const ORDER_WAREHOUSE_PACKING_STEP = 'MS_WAREHOUSE_PACKING'; public const ORDER_WAREHOUSE_ARRIVAL_STEP = 'MS_WAREHOUSE_ARRIVAL'; public const ORDER_WAREHOUSE_UNPACKING_STEP = 'MS_WAREHOUSE_UNPACKING'; public const ORDER_MODULE_NO_WAREHOUSE = 'NO_WAREHOUSE'; public const ORDER_NO_WAREHOUSE_PENDING_SUPPLIER = 'MS_NO_WAREHOUSE_PENDING_SUPPLIER'; public const ORDER_PRIMARY_STEPS = [ Constants::ORDER_PROCESSING_STEP => [ 'initial_name' => 'processing order', 'final_name' => 'order confirmed', 'description' => 'Order created and pending confirmation', 'sequence' => 0 ], Constants::ORDER_SHIPPING_STEP => [ 'initial_name' => 'shipping', 'final_name' => 'shipped out', 'description' => 'Order is Loaded to Container, waiting for Shipment', 'sequence' => 1 ], Constants::ORDER_DELIVERY_STEP => [ 'initial_name' => 'delivery', 'final_name' => 'Received', 'description' => 'Order out for delivery soon', 'sequence' => 2 ], ]; public const ORDER_MODULAR_STEPS = [ Constants::ORDER_MODULE_WAREHOUSE => [ 'china_warehouse' => [ 'previous' => Constants::ORDER_PROCESSING_STEP, 'next' => Constants::ORDER_SHIPPING_STEP, 'steps' => [ Constants::ORDER_WAREHOUSE_RECEIVING_STEP => [ 'initial_name' => 'pending supplier', 'final_name' => 'arrived at warehouse', 'description' => 'Waiting for supplier to deliver order to warehouse' ], Constants::ORDER_WAREHOUSE_PACKING_STEP => [ 'initial_name' => 'packing', 'final_name' => 'packed', 'description' => 'Packing order into shipping container' ] ] ], 'malaysia_warehouse' => [ 'previous' => Constants::ORDER_SHIPPING_STEP, 'next' => Constants::ORDER_DELIVERY_STEP, 'steps' => [ Constants::ORDER_WAREHOUSE_ARRIVAL_STEP => [ 'initial_name' => 'pending arrival', 'final_name' => 'arrived at warehouse', 'description' => 'Waiting for order\'s arrival & custom clearance' ], Constants::ORDER_WAREHOUSE_UNPACKING_STEP => [ 'initial_name' => 'unpacking', 'final_name' => 'unpacked', 'description' => 'Unpacking order from shipping container' ] ] ] ], Constants::ORDER_MODULE_NO_WAREHOUSE => [ 'pending_arrival' => [ 'previous' => Constants::ORDER_PROCESSING_STEP, 'next' => Constants::ORDER_SHIPPING_STEP, 'steps' => [ Constants::ORDER_NO_WAREHOUSE_PENDING_SUPPLIER => [ 'initial_name' => 'pending supplier', 'final_name' => 'supplier packed order', 'description' => 'Waiting for supplier to pack order for shipping' ] ] ] ] ]; }