<%= render "layouts/portlet-config" %> <% myimages = "#{root_url}assets/img/profiles/avatar-02.jpg" if @seawdarsobj if @seawdarsobj.sw_image !=nil && @seawdarsobj.sw_image !='' chekpath = chekpaths = "#{Rails.root}/public/images/sewadar/"+@seawdarsobj.sw_image.to_s if File.file?(chekpath) myimages = "#{root_url}images/sewadar/"+@seawdarsobj.sw_image.to_s end end end %>
<% if @seawdarsobj %><%=@seawdarsobj.sw_sewadar_name%><% end %>

Welcome, <% if @seawdarsobj %><%=@seawdarsobj.sw_sewadar_name%><% end %> View Profile

<%=Date.today.strftime("%A")%>, <%=Date.today.strftime("%d %b %Y")%>

Quick Access

Advance Summary

<% myselectcount = 0 if @advListobj!=nil && @advListobj.length >0 && @advListobj[0].al_approvestatus !=nil && @advListobj[0].al_approvestatus != '' myselectcount = 1 end if myselectcount.to_i >0 @advListobj.each do |advs| totals = advs.adamounts mytypes = "" status = 0 if advs.al_approvestatus.to_s == 'A' status = "Approved" elsif advs.al_approvestatus.to_s == 'R' status = 'Rejected' elsif advs.al_approvestatus.to_s == 'N' status = 'Pending' else status = 'Pending' end if advs.al_requesttype.to_s == 'Loan' mytypes = "Advance" elsif advs.al_requesttype.to_s == 'Advance' mytypes = "Salary Advance" end %> <% end else %> <% end %>
Advance Type Amount EMI Status
<%=mytypes%> <%=totals%> <%=advs.al_installpermonth%> <%=status%>
No record(s) found.

Leave Summary

<% if @leaveLedger && @leaveLedger.length >0 @leaveLedger.each do |inv| creiditedlv = inv.credits.to_f debitedleve = inv.debits.to_f obs = get_all_opening_balance(inv.leavecode) balances = (obs.to_f+inv.credits.to_f).to_f-inv.debits.to_f @clbal = balances %> <% end else %> <% end %>
Leave Type OB Credit Taken Balance
<%=inv.leavecode%> <%=obs%> <%=creiditedlv%> <%=debitedleve%> <%=balances%>
No record(s) found.
<% if @listAnnouncement && @listAnnouncement.length >0 %>

Announcement/Message

<% if @listAnnouncement && @listAnnouncement.length >0 @listAnnouncement.each do |aanounceamt| department = "" deprtobj = get_department_detail(aanounceamt.ans_posteddashboard) if deprtobj department = deprtobj.departDescription end %>
<%=aanounceamt.ans_announcment%>

- <%=department%>

<% end else %> No announcement found. <% end %>
<% sld = 1; if @listAnnouncement && @listAnnouncement.length >0 @listAnnouncement.each do |aanounceamt| %> <% sld +=1 end end %>
<% end %>
<% if @ListSewBirth %>

Birthdays Wishes

<% end%> <% if @ListSewBirth %>
<% if @BirthdayList%><%=@BirthdayList.bw_title_enlish%><% end %> <%=@ListSewBirth.sw_sewadar_name%>
"Our whole team is wishing you the happiest of birthdays"
<% end %> <% birtallist = get_all_birthday_listed() if birtallist && birtallist.length >0 %>

Birthdays

<% birtallist.each do |newabd| bwmyimages = "#{root_url}assets/img/profiles/avatar-02.jpg" if newabd.sw_image !=nil && newabd.sw_image !='' chekpaths = "#{Rails.root}/public/images/sewadar/"+newabd.sw_image.to_s if File.file?(chekpaths) bwmyimages = "#{root_url}images/sewadar/"+newabd.sw_image.to_s end end department = "" departobj = get_all_department_detail(newabd.sw_depcode) if departobj department = departobj.departDescription end %>

- <%=newabd.sw_sewadar_name%>

<%=department%>

<% end %>
<% sld = 1; birtallist = get_all_birthday_listed() if birtallist && birtallist.length >0 birtallist.each do |newabd| %> <% sld +=1 end end %>
<% end %>

Upcoming Holiday

<% if @Holidaylisted %> <%=@Holidaylisted.dateYear.strftime("%A")%> <%=@Holidaylisted.dateYear.strftime("%d %b %Y")%> - <%=@Holidaylisted.description%> <% end %>