
    nj                     "    d dl mZ d dlmZ d Zy)    )Orders)Shopc                 .   | j                   j                  si S t        | j                   dd      }|dvri S t        j                  j                  | j                   j                        }|r|d   nd }dddddd}g d}dd	g}|r|d
k(  rt        j                  j                  |ddgd|      j                         |d<   t        j                  j                  |ddgd|      j                         |d<   t        j                  j                  |dd|      j                         |d<   t        j                  j                  |dd|      j                         |d<   |dk(  r2t        j                  j                  dd      j                         |d<   |S )N	user_type )
Shop AdminPU Admin)unit_admin_user__uuidr   )local_web_countlocal_mobile_countcustom_web_countcustom_mobile_countlong_distance_count)IOSAndriodAndroidFlutter_web_appWebOtherr   zLocal OrderszPick Up	Confirmed)
store_uuidorder_type__inorder_statusplatform__inr   r   zCustom Orders)r   
order_typer   r   r   r   r	   zLong Distance Orders)r   r   r   )	useris_authenticatedgetattrr   objectsfilteruuidr   count)requestr   shop_qsshop_idcountsmobile_platformsweb_platformss          \C:\Users\Saasvaap\Desktop\Akash\Saasvaap\DEMO\Navya-Bakers\adminportal\context_processors.pyorder_countsr*      s   <<((	k26I22	ll!!8I8I!JG#gajG   F HG$M9,$*NN$9$9*I6$&	 %: %

 %' 	 ! (.~~'<'<*I6$)	 (= (

 %' 	#$ &,^^%:%:&$&	 &; &

 %' 	!" )/(=(=&$)	 )> )

 %' 	$% J(.(=(=-$ )> )
 %' 	$%
 M    N)orders.modelsr   shops.modelsr   r*    r+   r)   <module>r/      s      9r+   