= render 'shared/filter', filter_form: 'company/proposals/filter', class: 'with-margin' .container-fluid #collapsePan.row.collapse.collapsebel-panel .col-md-5#revenue-stats = render 'shared/revenue_stats', heading: 'ACCEPTED PROPOSALS', model: Proposal .col-md-7.mb40 .panel.panel-default.graph-height .panel-body = render 'shared/bargraph', type: 'proposal', period: 'year' .text-center.collapse-btn-holder.proposals.hide 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" .container-fluid.content-wrapper.proposals-wrapper .marginbot10.margintop10 .row .col-sm-12 ul.nav.nav-tabs role='tablist' li role='presentation' class= "#{:active unless params[:tab] == 'outbound'}" = link_to company_proposals_path, role: :tab, aria: {controls: 'inbound'}, class: 'grey' do |INBOUND li role='presentation' class= "#{:active if params[:tab] == 'outbound'}" - url = @company.vendor? ? company_proposals_path(tab: :outbound) : clients_limited_access_company_profile_path = link_to url, role: :tab, aria: {controls: 'outbound'}, class: 'grey' do |OUTBOUND span.pl10 = fa_icon('upload') .panel.panel-grid.panel-default .panel-body style=("padding:10px !important;") .col-md-6.pl8 h4.margintop10.text-upper-grey Proposals .col-md-6.text-right - if loyalty.create? and params[:tab] == 'outbound' = link_to new_company_proposal_path, class: 'btn btn-primary' do i.fa.fa-plus span.pl5 | Create Proposal span.pl10 = fa_icon('upload') .col-md-12.recently-updated h4.recently-updated-panel Recently Updated .clearfix - if loyalty.create? and params[:tab] == 'outbound' .col-md-2 .panel.new-work.panel-grid.panel-default .panel-body br/ br/ br/ br/ .text-center = link_to new_company_proposal_path do i.fa.fa-plus aria-hidden='true' span.pl5 | New Proposal - @recent_proposals.each do |proposal| = link_to edit_company_proposal_path(proposal.id) do .col-md-2 .panel.draft.panel-grid.panel-default .panel-body = "##{proposal.id}" br/ strong = proposal.company.name br/ = proposal.date_of_issue.strftime('%d/%m/%Y') if proposal.date_of_issue .panel-footer = proposal.status .clearfix /! Resently updated End #proposal-list-container = render 'proposal_list', company_proposals: @company_proposals