<modification>
	
	<name>DearSoft - Color Code</name>
	<version>1.0</version>
	<author><![CDATA[<span style="color: #E5BC7A;"><b>DearSoft</b></span>]]></author>
	<link>dearsoft.bd</link>
	<code>DearSoft__OrderStatusColor</code>
	
	<file path="catalog/view/theme/porto/template/account/order_list.tpl">
		<operation error="skip">
			<search><![CDATA[echo $order['status'];]]></search>
			<add position="replace"><![CDATA[
		if ($order['status'] == 'Shipped') { echo '<span style="color:orange">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Pending') { echo '<span style="color:red">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Complete') { echo '<span style="color:green">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Collected') { echo '<span style="color:green">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Processing') { echo '<span style="color:blue">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Store Collection') { echo '<span style="color:orange">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Pre-order') { echo '<span style="color:orange">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Canceled') { echo '<span style="color:red">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Voided') { echo '<span style="color:red">'.$order['status'].'</span>'; }
			elseif ($order['status'] == 'Processed') { echo '<span style="color:#0096ff">'.$order['status'].'</span>'; }
			else { echo $order['status']; }
				]]></add>
		</operation>
	</file>
	
	<file path="admin/view/template/extension/dashboard/recent_info.twig">
		<operation error="skip">
			<search><![CDATA[<td>{{ order.status }}</td>]]></search>
			<add position="replace"><![CDATA[
		{% if order.status == 'Shipped' %} <td><span style="color:orange">{{ order.status }}</span></td>
		{% elseif order.status == 'Pending' %} <td><span style="color:red">{{ order.status }}</span></td>
		{% elseif order.status == 'Complete' %} <td><span style="color:green">{{ order.status }}</span></td>
		{% elseif order.status == 'Collected' %} <td><span style="color:green">{{ order.status }}</span></td>
		{% elseif order.status == 'Processing' %} <td><span style="color:blue">{{ order.status }}</span></td>
		{% elseif order.status == 'Store Collection' %} <td><span style="color:orange">{{ order.status }}</span></td>
		{% elseif order.status == 'Pre-order' %} <td><span style="color:orange">{{ order.status }}</span></td>
		{% elseif order.status == 'Canceled' %} <td><span style="color:red">{{ order.status }}</span></td>
		{% elseif order.status == 'Refunded' %} <td><span style="color:red">{{ order.status }}</span></td>
		{% elseif order.status == 'Voided' %} <td><span style="color:red">{{ order.status }}</span></td>
		{% elseif order.status == 'Processed' %} <td><span style="color:#0096ff">{{ order.status }}</span></td>
		{% elseif order.status == null %} <td><span style="color:fuchsia">Missing Order</span></td>
		{% else %} <td>{{ order.status }}</td>
		{% endif %}
				]]></add>
		</operation>
	</file>
	<file path="admin/view/template/sale/order_list.twig">
		<operation error="skip">
			<search><![CDATA[<td class="text-left">{{ order.order_status }}</td>]]></search>
			<add position="replace"><![CDATA[
		{% if order.order_status == 'Shipped' %} <td class="text-left"><span style="color:orange">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Pending' %} <td class="text-left"><span style="color:red">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Complete' %} <td class="text-left"><span style="color:green">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Collected' %} <td class="text-left"><span style="color:green">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Processing' %} <td class="text-left"><span style="color:blue">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Store Collection' %} <td class="text-left"><span style="color:orange">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Pre-order' %} <td class="text-left"><span style="color:orange">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Canceled' %} <td class="text-left"><span style="color:red">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Refunded' %} <td class="text-left"><span style="color:red">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Voided' %} <td class="text-left"><span style="color:red">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Processed' %} <td class="text-left"><span style="color:#0096ff">{{ order.order_status }}</span></td>
		{% elseif order.order_status == 'Missing Orders' %} <td class="text-left"><span style="color:fuchsia">{{ order.order_status }}</span></td>
		{% else %} <td class="text-left">{{ order.order_status }}</td>
		{% endif %}
			]]></add>
		</operation>
	</file>
	<file path="admin/view/template/sale/order_history.twig">
		<operation error="skip">
			<search><![CDATA[<td class="text-left">{{ history.status }}</td>]]></search>
			<add position="replace"><![CDATA[
		{% if history.status == 'Shipped' %} <td class="text-left"><span style="color:orange">{{ history.status }}</span></td>
		{% elseif history.status == 'Pending' %} <td class="text-left"><span style="color:red">{{ history.status }}</span></td>
		{% elseif history.status == 'Complete' %} <td class="text-left"><span style="color:green">{{ history.status }}</span></td>
		{% elseif history.status == 'Collected' %} <td class="text-left"><span style="color:green">{{ history.status }}</span></td>
		{% elseif history.status == 'Processing' %} <td class="text-left"><span style="color:blue">{{ history.status }}</span></td>
		{% elseif history.status == 'Store Collection' %} <td class="text-left"><span style="color:orange">{{ history.status }}</span></td>
		{% elseif history.status == 'Pre-order' %} <td class="text-left"><span style="color:orange">{{ history.status }}</span></td>
		{% elseif history.status == 'Canceled' %} <td class="text-left"><span style="color:red">{{ history.status }}</span></td>
		{% elseif history.status == 'Refunded' %} <td class="text-left"><span style="color:red">{{ history.status }}</span></td>
		{% elseif history.status == 'Voided' %} <td class="text-left"><span style="color:red">{{ history.status }}</span></td>
		{% elseif history.status == 'Processed' %} <td class="text-left"><span style="color:#0096ff">{{ history.status }}</span></td>
		{% else %} <td class="text-left">{{ history.status }}</td>
		{% endif %}
			]]></add>
		</operation>
	</file>
	<file path="admin/view/template/sale/order_info.twig">
		<operation error="skip">
			<search><![CDATA[<td>{{ other_order.order_status }}</td>]]></search>
			<add position="replace"><![CDATA[
		{% if other_order.order_status == 'Shipped' %} <td><span style="color:orange">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Pending' %} <td><span style="color:red">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Complete' %} <td><span style="color:green">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Collected' %} <td><span style="color:green">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Processing' %} <td><span style="color:blue">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Store Collection' %} <td><span style="color:orange">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Pre-order' %} <td><span style="color:orange">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Canceled' %} <td><span style="color:red">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Refunded' %} <td><span style="color:red">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Voided' %} <td><span style="color:red">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == 'Processed' %} <td><span style="color:#0096ff">{{ other_order.order_status }}</span></td>
		{% elseif other_order.order_status == '' %} <td><span style="color:fuchsia">Missing Order</span></td>
		{% else %} <td>{{ other_order.order_status }}</td>
		{% endif %}
			]]></add>
		</operation>
	</file>

</modification>