.container-fluid.margintop20 #collapsePan.row.collapse.collapsebel-panel style='padding-top:0px;' data-turbolinks-permanent='true' .container .row .col-md-7.invite-form.border-right .col-md-12 .panel.panel-default .panel-body .col-md-12 .client-details.col-md-12 .clearfix .col-md-5 - if client.logo? = image_tag client.logo_url(:medium), height: '199', width: '192', alt: 'Client Logo', class: 'img-responsive' - else = image_tag('clients.png', height: '199', width: '192', class: 'img-circle user-pic', alt: 'Client Logo') .col-md-7.contact-person h1.client-name = client.name.try(:upcase) .row .col-md-6 h5 Join Date h6 = client.created_at.strftime('%m/%d/%Y') .col-md-6 h5 Work Orders h6 = work_orders_count h5.col-md-12 Contact Person .client-contact-details-wrapper /= render 'company/clients/client_contact_details', contacts: contacts .col-md-5 .col-md-11.centered-div h6 Building location div = static_map_for_multipile(client.locations) .row .col-md-12 .col-md-4.mt20 .col-md-12.summary-panel .summary-icon i.fa.fa-wrench aria-hidden='true' .text-center h2 = work_orders_count h4 # of Workorders .col-md-4.mt20 .col-md-12.summary-panel .summary-icon i.fa.fa-file-text-o aria-hidden='true' .text-center h2 = client.invoices.without_deleted.count h4 # of Invoices h2 = client.proposals.without_deleted.approved_proposals.count h4 # Approved Proposals .col-md-4.mt20 .col-md-12.summary-panel .summary-icon i.fa.fa-usd aria-hidden='true' .text-center / h2= number_to_currency(client.revenue.round(2), :unit => "$") h2= number_to_currency(0, :unit => "$") h4 Total Revenu Ammount /h2 = number_to_currency(client.outstanding_invoices_total.round(2), :unit => "$") h2 = number_to_currency(0, :unit => "$") h4 Total Outstanding Invoices(USD) .text-center.collapse-btn-holder.mt-20 hr/ .collapse-btn a aria-controls='collapseExample' aria-expanded='false' data-toggle='collapse' href='#collapsePan' role='button' i.fa.fa-sort-asc aria-hidden='true' i.fa.fa-sort-desc aria-hidden='true' .clearfix .margintop20 .panel.client-tabs ul.nav.nav-tabs role='tablist' - if loyalty(nil, 'company/work_orders').index? li class="#{'active' if params[:controller] == 'company/clients/work_orders' or params[:controller] == 'company/clients'}" = link_to 'WORK ORDERS', company_client_work_orders_path(client, tab: :outbound) - if loyalty(nil, 'company/locations').index? li class="#{'active' if params[:controller] == 'company/clients/locations'}" = link_to 'SITES', company_client_locations_path(client) - if loyalty(nil, 'company/equipment').index? li class="#{'active' if params[:controller] == 'company/clients/equipments'}" = link_to 'EQUIPMENT', company_client_equipments_path(client) - if loyalty(nil, 'company/invoices').index? li class="#{'active' if params[:controller] == 'company/clients/invoices'}" = link_to 'INVOICES', company_client_invoices_path(client) - if loyalty(nil, 'company/proposals').index? li class="#{'active' if params[:controller] == 'company/clients/proposals'}" = link_to 'PROPOSALS', company_client_proposals_path(client) - if loyalty(nil, 'company/agreement_contracts').index? li class="#{'active' if params[:controller] == 'company/clients/agreement_contracts'}" = link_to 'AGREEMENTS', company_client_agreement_contracts_path(client, tab: :attention) li.pull-right = link_to "EDIT CLIENT", edit_company_wizard_client_path(client), class: "btn btn-primary edit-client-btn", target: "_blank"