@php $order_work_invoice = ['invoice', 'invoice-detail']; $order_work_delivery = ['delivery']; $set_quotation = ($action == 'quotation') ? ' active' : ''; $set_order_sales = ($action == 'sales') ? ' active' : ''; $set_order_work_invoice = ($action == 'work' && in_array($function, $order_work_invoice)) ? ' active' : ''; $set_order_work_delivery = ($action == 'work' && in_array($function, $order_work_delivery)) ? ' active' : ''; $set_purchasing_request = ($controller == 'purchasing' && $action == 'request') ? ' active' : ''; $set_purchasing_order = ($controller == 'purchasing' && $action == 'order') ? ' active' : ''; $set_purchasing_payment = ($controller == 'purchasing' && $action == 'payment') ? ' active' : ''; $set_report_sales = ($controller == 'report' && $action == 'sales') ? ' active' : ''; $set_report_transaction_income = ($controller == 'report' && $action == 'transaction' && ($function == 'income' or $function == 'outcome')) ? ' active' : ''; $set_report_work = ($controller == 'report' && $action == 'work') ? ' active' : ''; $set_report_goods_customer = ($controller == 'report' && $action == 'goods-customer') ? ' active' : ''; $set_report_inventory = ($controller == 'report' && $action == 'inventory') ? ' active' : ''; $set_report_purchase = ($controller == 'report' && $action == 'purchase') ? ' active' : ''; @endphp