<?php



	if (isset($_SESSION['user_id'])) {



        $user_type = $_SESSION['user_type'];



        $user_id = $_SESSION['user_id'];



        $user_name = $_SESSION['user_name'];



        $branch_id = $_SESSION['branch_id'];



        $branch_name = $_SESSION['branch_name'];



        $store_id = $_SESSION['store_id'];



        $store_name = $_SESSION['store_name'];



}else{



    header('Location: login');



    die();



}



$rights_id = $user_id;



include('user_permissions.php');



?>



	<div class="left-side-bar">



		<div class="brand-logo">



			<a href="dashboard">



				<h3>Mohsin Traders</h3>



			</a>



		</div>



		<div class="menu-block customscroll">



			<div class="sidebar-menu">



				<ul id="accordion-menu">



				<li>



						<a href="dashboard" class="dropdown-toggle no-arrow">



							<span class="fa fa-dashboard text-primary"></span><span class="mtext">Dashboard</span>



						</a>



					</li>



					<?php if($user_type=='admin')



						{



							echo '



							



						



					<li class="dropdown">



						<a href="javascript:;" class="dropdown-toggle">



							<span class="fa fa-cogs text-warning"></span><span class="mtext">Settings</span>



						</a>



						<ul class="submenu">



							<li><a href="store">Store</a></li>



							<li><a href="branch">Branch</a></li>



							<li><a href="user_detail">Users</a></li>



							<li><a href="sales_man_detail">Sales Man</a></li><li><a href="employees">Employees</a></li



							><li><a href="item_color">Item Color</a></li>



							<li><a href="item_type">Item Type</a></li>



							<li><a href="item_brand">Item Brand</a></li>



							<li><a href="item_uom">Item UOM</a></li>	



							<li><a href="titles">Print Title</a></li>



							<li><a href="my_backup">Backup</a></li>



							



						</ul>



					</li>';



					}



					?>



					<!--GL-->



					<li class="dropdown">



						<?php if($gl=='ON')



						{



							echo '



							<a href="javascript:;" class="dropdown-toggle">



							<span class="fa fa-line-chart text-success"></span><span class="mtext">GL</span>



						</a>';



						}



						?>



						<ul class="submenu">



							<?php if($gl_parent_accounts=='ON')



						{



							echo '



							<li><a href="accounts_parent">Parent Account</a></li>';}?>



							<?php if($gl_accounts=='ON')



						{



							echo '



							<li><a href="accounts">Sub Accounts</a></li>';}?>



							



							<?php if($jv=='ON')



						{



							echo '



							<li><a href="jv">JVs</a></li>';}?>



							



							<li class="dropdown">



								<?php if($gl_reports=='ON')



						{



							echo '



								<a href="javascript:;" class="dropdown-toggle">



									<span class="fa fa-print"></span><span class="mtext">Reports</span>



								</a>';}?>



								<ul class="submenu child">



								<li><a href="gl">General Ledger</a></li>



								<?php if($gl_reports_trial_balance=='ON')



						{



							echo '



									<li><a href="rpt_trial_balance_preview" target="_blank">Trial Balance</a></li>';}?>



								<?php if($gl_reports_sub_accounts=='ON')



						{



							echo '



									<li><a href="rpt_sub_accounts" target="_blank">Sub Accounts Balance</a></li>



							<li><a href="rpt_sub_accounts_detail">Parent Account Detail</a></li>';}?>



								</ul>



							</li>



							



						</ul>



					</li>



					<li class="dropdown">



						<?php if($inventory=='ON')



						{



							echo '



						<a href="javascript:;" class="dropdown-toggle">



							<span class="fa fa-tags text-secondary"></span><span class="mtext">Inventory</span>



						</a>';}?>



						<ul class="submenu">



							



						<?php if($items=='ON')



						{



							echo '



							<li><a href="items">Items</a></li>



							<li><a href="inventory">Item Inquiry</a></li>';}?>



							<?php if($items_transfer=='ON')



						{



							echo '



							<li><a href="item_transfer">Item Transfer</a></li>';}?>



							<?php if($items_adjust=='ON')



						{



							echo '



							<li><a href="item_adjust">Item Adjustment</a></li>';}?>



							



							<li class="dropdown">



							<?php if($inventory_reports=='ON')



						{



							echo '



								<a href="javascript:;" class="dropdown-toggle">



									<span class="fa fa-print"></span><span class="mtext">Reports</span>



								</a>';}?>



								<ul class="submenu child">



									<?php if($inventory_reports_item_ledger=='ON')



						{



							echo '



									<li><a href="rpt_item_ledger" target="_blank">Item Ledger</a></li>';}?>



									<?php if($inventory_reports_item_ledger=='ON')



						{



							echo '



									<li><a href="rpt_item_transfer" target="_blank">Item Ledger By Store</a></li>';}?>



									<?php if($inventory_reports_item_ledger=='ON')



						{



							echo '



									<li><a href="rpt_store_inquiry" target="_blank">Store In/Out</a></li>';}?>



								<?php if($inventory_reports_stockbystore=='ON')



						{



							echo '



									<li><a href="stock_instore">Stock By Store</a></li>



									<li><a href="rpt_item_stock_instore" target="_blank">All Stock In Stores</a></li>';}?>



									<?php if($inventory_reports_stockavailable=='ON')



						{



							echo '



									<li><a href="rpt_stock_available" target="_blank">Stock Available</a></li>';}?>



									<?php if($inventory_reports_stockavailable_value=='ON')



						{



							echo '



									<li><a href="rpt_stock_available_value" target="_blank">Stock Available Value</a></li>';}?>



									<?php if($inventory_reports_min_stock=='ON')



						{



							echo '



									<li><a href="rpt_min_stock" target="_blank">Minimum Stock</a></li>';}?>



									<?php if($inventory_reports_min_stock=='ON')



						{



							echo '



									<li><a href="rpt_max_stock" target="_blank">Maximum Stock</a></li>';}?>



									



								</ul>



							</li>



							



						</ul>



					</li>



					<!--Accounts Payable-->



					<li class="dropdown">



						<?php if($accounts_payable=='ON')



						{



							echo '



						<a href="javascript:;" class="dropdown-toggle">



							<span class="fa fa-paypal text-danger"></span><span class="mtext">Accounts Payable</span>



						</a>';}?>



						<ul class="submenu">



							<?php if($vendors=='ON')



						{



							echo '



							<li><a href="vendor">Vendors</a></li>';}?>



							<?php if($sub_vendors=='ON')



						{



							echo '



							<li><a href="sub_vendors">Sub Vendors</a></li>';}?>



							<?php if($purchase=='ON')



						{



							echo '



							<li><a href="purchase">Pruchase Invoices</a></li>';}?>



							<?php if($purchase_return=='ON')



						{



							echo '



							<li><a href="pr">Pruchase Return</a></li>';}?>



							<li class="dropdown">



							



							<?php if($accounts_payable_payments=='ON')



						{



							echo '



								<a href="javascript:;" class="dropdown-toggle">



									<span class="fa fa-money"></span><span class="mtext">Payment Voucher</span>



								</a>';}?>



								<ul class="submenu child">



								<?php if($accounts_payable_payments=='ON')



						{



							echo '



									<li><a href="ap_cash_payment">Cash</a></li>';}?>



								



									<?php if($accounts_payable_payments=='ON')



						{



							echo '



									<li><a href="ap_cheque_payment">Cheques</a></li>';}?>



								</ul>



							</li>



							



							<li class="dropdown">



								<?php if($accounts_payable_reports=='ON')



						{



							echo '



								<a href="javascript:;" class="dropdown-toggle">



									<span class="fa fa-print"></span><span class="mtext">Reports</span>



								</a>';}?>



								<ul class="submenu child">



								<?php if($accounts_payable_reports_vl=='ON')



						{



							echo '



									<li><a href="vl">Vendor Ledger</a></li>';}?>



								



									<?php if($accounts_payable_reports_os=='ON')



						{



							echo '



									<li><a href="rpt_ap" target="_blank">Out Standing</a></li>';}?>



								



									<?php if($accounts_payable_reports_payments=='ON')



						{



							echo '



									<li><a href="rpt_pay">Payments</a></li>';}?>



									<?php if($accounts_payable_reports_purchase_report=='ON')



						{



							echo '



									<li><a href="rpt_purchase">Purchase</a></li>';}?>



									<?php if($accounts_receivable_reports_aging=='ON')



						{



							echo '



										<li><a href="rpt_ap_aging">Aging Report</a></li>



										<li><a href="rpt_ap_aging_detail">invoice Aging Report</a></li>



										';}?>



								</ul>



							</li>



							



						</ul>



					</li>



					<!--Accounts Receivable-->



					<li class="dropdown">



						<?php if($accounts_receivable=='ON')



						{



							echo '



						<a href="javascript:;" class="dropdown-toggle">



							<span class="fa fa-credit-card-alt text-info"></span><span class="mtext">Accounts Receivable</span>



						</a>';}?>



						<ul class="submenu">



							



						<?php if($customers=='ON')



						{



							echo '



							<li><a href="customer">Customers</a></li>';}?>



							<?php if($wholesale_invoices=='ON')



						{



							echo '



							<li><a href="sales">Credit Sale Invoices</a></li>';}?>







							<?php if($gl_reports_gl=='ON')



						{



							echo '



							<li><a href="sales_customize">Edit Credit Invoices</a></li>';}?>



							



							<?php if($cash_invoices=='ON')



						{



							echo '



							<li><a href="csales">Cash Sale Invoices</a></li>';}?>



							



							<?php if($return_retail=='ON')



						{



							echo '



							<li><a href="csr">Cash Sale Return</a></li>';}?>



							



							<?php if($return_wholesale=='ON')



						{



							echo '



							<li><a href="wsr">Credit Sale Return</a></li>';}?>



							<li class="dropdown">



								<?php if($accounts_receivable_payments=='ON')



						{



							echo '



								<a href="javascript:;" class="dropdown-toggle">



									<span class="fa fa-money"></span><span class="mtext">Receipt Voucher</span>



								</a>';}?>



								<ul class="submenu child">



								<?php if($accounts_receivable_payments=='ON')



						{



							echo '



									<li><a href="ar_cash_receipt">Cash Receipt</a></li>';}?>



								



									<?php if($accounts_receivable_payments=='ON')



						{



							echo '



									<li><a href="ar_cheque_receipt">Cheques Receipt</a></li>';}?>



								</ul>



							</li>



							



							<li class="dropdown">



								<?php if($accounts_receivable_reports=='ON')



						{



							echo '



								<a href="javascript:;" class="dropdown-toggle">



									<span class="fa fa-print"></span><span class="mtext">Reports</span>



								</a>';}?>



								<ul class="submenu child">



								<?php if($accounts_receivable_reports_cl=='ON')



						{



							echo '



									<li><a href="cl">Customer Ledger</a></li>



									<li><a href="rpt_sale_target">Sales Target</a></li>';}?>



								



									<?php if($accounts_receivable_reports_os=='ON')



						{



							echo '



									<li><a href="rpt_ar" target="_blank">Out Standsings</a></li>



									';}?>



								



									<?php if($accounts_receivable_reports_payments=='ON')



						{



							echo '



										<li><a href="rpt_rec">Payments</a></li>



										';}?>



										<?php if($accounts_receivable_reports_cash_invoices=='ON')



						{



							echo '



										<li><a href="rpt_cash_sale">Cash Sale Detail</a></li>



										<li><a href="rpt_sale_invoices">Credit Sale Detail</a></li>



										';}?>







										<?php if($user_type=='admin')



						{



							echo '



										<li><a href="rpt_sm_sales">Average Sale Summary</a></li>



										



										';}?>



										<?php if($accounts_receivable_reports_aging=='ON')



						{



							echo '



										<li><a href="rpt_ar_aging">Aging Report</a></li>



										<li><a href="rpt_ar_aging_detail">invoice Aging Report</a></li>



										';}?>



								</ul>



							</li>



							



						</ul>



					</li>



				</ul>



			</div>



		</div>



	</div>