<div class="panel panel-default">
  <div class="panel-body row">
    @if($funding==1)
    <!-- Raising Funding -->
    <div class="col-sm-12 funding-block" id="funding1">
    <form method="post" id="fundForm" name="fundForm" enctype="multipart/form-data" action="{{$action_url}}">
      <input type="hidden" name="_token" value="{{ csrf_token() }}">
      <input type="hidden" name="_fb_id" id="_fb_id" value="{{ ( isset($funding_data->id) ) ? $funding_data->id : 0 }}">
      <h3>Raise Funding</h3><hr>
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'BY,') ===false)  || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-4">
        <div class="form-group">
          <div class="panel panel-default">
            <div class="panel-heading">
              <label class="control-label">Years in business</label>
            </div>
            <div class="panel-body">
              {{$funding_data->years_in_business}}
            </div>
          </div>
        </div>                          
      </div>   
      <div class="clearfix"></div>
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'RV,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="panel panel-default">
            <div class="panel-heading">
              <label class="control-label">Your Revenue</label>
            </div>
            <div class="panel-body">
              <div class="col-md-4">
                <?php if(isset($funding_data->revenue_det) && $funding_data->revenue_det) echo $funding_data->revenue_det;?>
              </div>
              <div class="col-md-4">
                <?php foreach($currency_all as $curreny): ?>
                  @if($funding_data->assets_currency == $curreny->id)
                  {{$curreny->name}}
                  @endif
                <?php endforeach; ?>
              </div>
              <div class="col-md-4">
                <?php foreach($currency_units as $unit): ?>
                  @if($funding_data->assets_currency_units == $unit->id)
                    {{$unit->units}} ({{$unit->amount}})
                  @endif
                <?php endforeach; ?>
              </div>
            </div>
          </div>
        </div>                            
      </div>  
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'G,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">Projected Growth Year Over Year
            </label>
            <div class="col-sm-6">
                <?php 
                $per=$growth_per_year->percentage;
                for($i=$per; $i<100;$i+=$per){
                   $sam=$per+$i; ?>
                  {{ (isset($funding_data->growth) && $funding_data->growth == ($i+1).'-'.$sam) ? ($i+1).'-'.$sam : ''}}
                <?php 
                    } ?>
            </div>
          </div>
        </div>
      </div>
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'E,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
       <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">Number of Employees
              </label>
            <div class="col-sm-6">
              {{$funding_data->emp_strength}}
            </div>
          </div>
        </div>
      </div>  
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'NB,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">Nature of Business</label>
            <div class="col-sm-6">
                <?php foreach($industries as $industry): ?>
                  @if($funding_data->nature_business == $industry->id)
                    {{$industry->name}}
                  @endif
                <?php endforeach; ?>
            </div>
          </div>
        </div>
      </div>   
      @endif                                                     
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'PL,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-12 control-label">Your Profit and Loss Statement (Last 5 Years)</label>
            <div class="col-sm-12">
                @if($funding_data->prev_profit_loss)
                  {{--*/ $viewName = @end( @explode( '.', $funding_data->prev_profit_loss) ) /*--}}
                  @if($viewName=='doc')
                  {{--*/ $file_type='fa-file-word-o' /*--}}
                  @endif
                  @if($viewName=='docx')
                  {{--*/ $file_type='fa-file-word-o' /*--}}
                  @endif
                  @if($viewName=='pdf')
                  {{--*/ $file_type='fa-file-pdf-o' /*--}}
                  @endif
                  @if($viewName=='txt')
                  {{--*/ $file_type='fa-file-text-o' /*--}}
                  @endif
                  @if($viewName=='xls')
                  {{--*/ $file_type='fa-file-excel-o' /*--}}
                  @endif
                  @if($viewName=='xlsx')
                  {{--*/ $file_type='fa-file-excel-o' /*--}}
                  @endif
                  @if($viewName=='ppt')
                  {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                  @endif
                  @if($viewName=='pptx')
                  {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                  @endif
                  <div class="col-md-4">
                    <a target="_blank" href="{{asset('/download/funding/'.$funding_data->id.'/prev_profit_loss')}}"><i class="fa {{$file_type}} fa-3x"></i></a>
                  </div>
                @endif
            </div>
          </div>
        </div>                              
      </div>  
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'PN,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-12 control-label">Your Profit and Loss Statement (Next 5 Year: Projected)</label>
            <div class="col-sm-12">
                @if($funding_data->next_profit_loss)
                  {{--*/ $viewName = @end( @explode( '.', $funding_data->next_profit_loss) ) /*--}}
                  @if($viewName=='doc')
                  {{--*/ $file_type='fa-file-word-o' /*--}}
                  @endif
                  @if($viewName=='docx')
                  {{--*/ $file_type='fa-file-word-o' /*--}}
                  @endif
                  @if($viewName=='pdf')
                  {{--*/ $file_type='fa-file-pdf-o' /*--}}
                  @endif
                  @if($viewName=='txt')
                  {{--*/ $file_type='fa-file-text-o' /*--}}
                  @endif
                  @if($viewName=='xls')
                  {{--*/ $file_type='fa-file-excel-o' /*--}}
                  @endif
                  @if($viewName=='xlsx')
                  {{--*/ $file_type='fa-file-excel-o' /*--}}
                  @endif
                  @if($viewName=='ppt')
                  {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                  @endif
                  @if($viewName=='pptx')
                  {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                  @endif
                  <div class="col-md-4">
                    <a target="_blank" href="{{asset('/download/funding/'.$funding_data->id.'/next_profit_loss')}}"><i class="fa {{$file_type}} fa-3x"></i></a>
                  </div>
                @endif
            </div>
          </div>
        </div>
      </div> 
      @endif 
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'LT,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-12 control-label">Your Leadership Team</label>
            <div class="col-sm-12">
                @if($funding_data->lship_team_file)
                  {{--*/ $viewName = @end( @explode( '.', $funding_data->lship_team_file) ) /*--}}
                  @if($viewName=='doc')
                  {{--*/ $file_type='fa-file-word-o' /*--}}
                  @endif
                  @if($viewName=='docx')
                  {{--*/ $file_type='fa-file-word-o' /*--}}
                  @endif
                  @if($viewName=='pdf')
                  {{--*/ $file_type='fa-file-pdf-o' /*--}}
                  @endif
                  @if($viewName=='txt')
                  {{--*/ $file_type='fa-file-text-o' /*--}}
                  @endif
                  @if($viewName=='xls')
                  {{--*/ $file_type='fa-file-excel-o' /*--}}
                  @endif
                  @if($viewName=='xlsx')
                  {{--*/ $file_type='fa-file-excel-o' /*--}}
                  @endif
                  @if($viewName=='ppt')
                  {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                  @endif
                  @if($viewName=='pptx')
                  {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                  @endif
                  <div class="col-md-4">
                    <a target="_blank" href="{{asset('/download/funding/'.$funding_data->id.'/lship_team_file')}}"><i class="fa {{$file_type}} fa-3x"></i></a>
                  </div>
                @endif
            </div>
          </div>
        </div>                                      
      </div> 
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'BU,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">How Is Your Business Unique?</label>
            <div class="col-sm-6">
              {{ $funding_data->industry_focus or '' }}
            </div>
          </div>
        </div>
      </div>  
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'F,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">How Much Funding Are You Looking For
              @if($prof_det->private)
                <span class="">
                @if(isset($funding_data->private_permission) && strpos($funding_data->private_permission,'F,') === false || (isset($prof_det->full_profile) && $prof_det->full_profile))
                  <a href="{{url('/funding_permision/'.$prof_det->id.'/'.$funding_data->id.'?lock=F')}}"><i class="fa fa-unlock"></i></a>
                @else
                  <a href="{{url('/funding_permision/'.$prof_det->id.'/'.$funding_data->id.'?unlock=F')}}"><i class="fa fa-lock"></i></a>
                @endif
                </span>
              @endif
            </label>
             <div class="col-sm-3">
            
                @if($funding_data->investment_amt)
                  {{$funding_data->investment_amt}}
                @endif
              
            </div>
            <div class="col-sm-3">
              <?php foreach($currency_all as $curreny): ?>
                @if($funding_data->min_investment_currency == $curreny->id)
                  {{$curreny->name}}
                @endif
              <?php endforeach; ?>
            </div>
            <div class="col-sm-3">
              <?php foreach($currency_units as $unit): ?>
                @if($funding_data->min_investment_currency_units == $unit->id)
                {{$unit->units}} ({{$unit->amount}})
                @endif
              <?php endforeach; ?>
            </div>
          </div>
        </div>
      </div>
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'PIVD,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-sm-6">
        <div class="form-group">
          <div class="panel-default panel">                              
            <div class="panel-heading">
              <label class="control-label">Add Your Pitch To Investors</label>
            </div>  
            <div class="panel-body">
              @if($funding_assets_video)                          
                @foreach($funding_assets_video as $video)
                  @if($video->access=='PUB')
                  <div class="col-md-4">
                    @if($video->processed==0)
                      <img src="/uploads/processing.jpg" class="img-responsive ">
                    @else
                      <img src="{{$video->thumb_img}}" iframe-src ="https://player.vimeo.com/video/{{$video->url}}" class="img-responsive popup">
                    @endif
                  </div>
                  @endif
                @endforeach
              @endif
            </div>  
          </div>
        </div>  
      </div>
      @endif
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'PI,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-sm-6">
        <div class="form-group">
          <div class="panel-default panel">                              
            <div class="panel-heading">
              <label class="control-label">Add Your Pitch To Investors</label>
            </div>  
            <div class="panel-body">
              <!-- The container for the uploaded files -->
              <div id="pics_files" class="files">
              @if($funding_assets_data)
                @foreach($funding_assets_data as $asset)
                  @if($asset->access=='PUB') 
                    @if($asset->type == 'IMAGES')
                      <div class="col-md-4">
                        <div class="pull-right">
                          @if($prof_det->private)<!--<a href="javascript:void(0)" title="Delete"><i class="fa fa-trash-o"></i></a>-->@endif
                        </div>
                        <img src="{{$asset->url}}" class="img-responsive">
                      </div>
                    <!--<p>{{$asset->name}} - <span class="removeTh text-danger" style="cursor:pointer" data-id="{{$asset->id}}" data-url="{{$asset->delete_url}}">remove</span>-->
                    @endif
                  @endif    
                @endforeach
              @endif
                  <div class="clearfix"></div>
              </div>
            </div>  
          </div>
        </div>                                  
      </div>
      @endif
      <div class="clearfix"></div>
      @if((isset($funding_data->private_permission) && strpos($funding_data->private_permission,'O,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-sm-6">
        <div class="form-group">
          <div class="panel-default panel">                              
            <div class="panel-heading">
              <label class="control-label">Other Creative Assets</label>
            </div>  
            <div class="panel-body">
              <!-- The container for the uploaded files -->
              <div id="doc_files" class="files">
              @if($funding_assets_data)
                @foreach($funding_assets_data as $asset)
                  @if($asset->access=='PUB') 
                    @if($asset->type == 'DOCS')
                      {{--*/ $viewName = @end( @explode( '.', $asset->name ) ) /*--}}
                      @if($viewName=='doc')
                      {{--*/ $file_type='fa-file-word-o' /*--}}
                      @endif
                      @if($viewName=='docx')
                      {{--*/ $file_type='fa-file-word-o' /*--}}
                      @endif
                      @if($viewName=='pdf')
                      {{--*/ $file_type='fa-file-pdf-o' /*--}}
                      @endif
                      @if($viewName=='txt')
                      {{--*/ $file_type='fa-file-text-o' /*--}}
                      @endif
                      @if($viewName=='xls')
                      {{--*/ $file_type='fa-file-excel-o' /*--}}
                      @endif
                      @if($viewName=='xlsx')
                      {{--*/ $file_type='fa-file-excel-o' /*--}}
                      @endif
                      @if($viewName=='ppt')
                      {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                      @endif
                      @if($viewName=='pptx')
                      {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                      @endif
                      <div class="col-md-4">
                        <a target="_blank" href="{{asset('/download/funding_assets/'.$asset->id)}}"><i class="fa {{$file_type}} fa-3x"></i></a>
                      </div>
                    @endif
                  @endif      
                @endforeach
                  <!--<p>{{$asset->name}} - <span class="removeTh text-danger" style="cursor:pointer" data-id="{{$asset->id}}" data-url="{{$asset->delete_url}}">remove</span>-->
              @endif  
                  <div class="clearfix"></div>
              </div>  
            </div>  
          </div>
        </div>  
      </div>
      <div class="col-sm-6">
      </div>
      @endif
      @if($prof_det->private)
      <div class="col-md-12">
        <div class="form-group">
          <div class="row mtop20"> 
            <div class="col-sm-3 col-xs-6 col-sm-offset-3 raise-fund-save-btn-block"> 
              <button type="submit" id="fundFormSubmit" class="btn funding-save-btn">Save</button>
            </div>
            <div class="col-sm-3 col-xs-6">
              <button type="button" onclick="javascript:location.href='{{ url('profiles', ['profile_id' => $prof_det->id]) }}'" class="btn btn-default">Cancel</button>
            </div>                                        
          </div>
        </div>
      </div>
      @endif
    </form>
    </div>  
    <!-- End of Raising Funding -->
    @elseif($funding==2)

    <!-- Funding Business -->
    <div class="col-sm-12 funding-block" id="funding2">
      <h3>Funding Business</h3><hr>

      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'BY,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-4">
        <div class="form-group">
          <div class="panel panel-default">
            <div class="panel-heading">
              <label class="control-label">Years in business</label>
            </div>
            <div class="panel-body">
                <?php foreach($business_years as $year): ?>
                  {{ (isset($fb_data->years_in_business) && $fb_data->years_in_business == $year->id) ? $year->years : '' }}
                <?php endforeach; ?>
            </div>
          </div>
        </div>                          
      </div>   
      @endif
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'NB,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-4">
        <div class="form-group">
          <div class="panel panel-default">
            <div class="panel-heading">
              <label class="control-label">Nature of business</label>
            </div>
            <div class="panel-body">
                <?php foreach($financial_services as $service): ?>
                  {{ (isset($fb_data->financial_service) && $fb_data->financial_service == $service->id) ? $service->name : '' }} 
                <?php endforeach; ?>
            </div>
          </div>
        </div>                          
      </div> 
      @endif  
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'UM,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-8">
        <div class="form-group">
          <div class="panel panel-default">
            <div class="panel-heading">
              <label class="control-label">Assets Under Management</label>
            </div>
            <div class="panel-body">
              <div class="row">
                <div class="form-group">
                  <div class="col-md-4">
                    <?php if(isset($fb_data->revenue_det) && $fb_data->revenue_det) echo $fb_data->revenue_det;?>
                  </div>
                  <div class="col-md-4">
                      <?php foreach($currency_all as $curreny): ?>
                        {{ (isset($fb_data->assets_currency) && $fb_data->assets_currency == $curreny->id) ? $curreny->name : '' }}
                      <?php endforeach; ?>
                  </div>
                  <div class="col-md-4">
                      <?php foreach($currency_units as $unit): ?>
                      <?php if($fb_data->assets_currency_units && $fb_data->assets_currency_units == $unit->id){echo $unit->units.' ('.$unit->amount.')';}else { echo ""; }?>
                       
                      <?php endforeach; ?>
                  </div>
                </div>
              </div>  
            </div>
          </div>
        </div>                            
      </div>  
      @endif
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'MI,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="clearfix"></div>
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">Minimum Investment Size (Per Investment)
            </label>
            <div class="col-sm-6">
              <div id="min_inv_det" class="row {{ (!isset($fb_data->min_investment_currency) || !$fb_data->min_investment_currency) ? 'display-none' : '' }}">
                <div class="col-sm-6">
                  {{ (isset($fb_data->min_investment_currency)) ? $fb_data->min_investment_amt : '' }}
                  <?php foreach($currency_all as $curreny): ?>
                    {{(isset($fb_data->min_investment_currency) && $fb_data->min_investment_currency == $curreny->id) ? $curreny->name : '' }}
                  <?php endforeach; ?>
                
                  <?php foreach($currency_units as $unit): ?>
                  <?php if($fb_data->min_investment_currency_units && $fb_data->min_investment_currency_units == $unit->id){echo $unit->units.' ('.$unit->amount.')';}else { echo ""; }?>
                    
                  <?php endforeach; ?>
                </div>
              </div>            
            </div>
          </div>
        </div>
      </div>
      @endif
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'MX,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">Maximum Investment Size (Per Investment)
              </label>
            <div class="col-sm-6">
              <div id="max_inv_det" class="row {{ (!isset($fb_data->max_investment_currency) || !$fb_data->max_investment_currency) ? 'display-none' : '' }}">
                <div class="col-sm-6">
                  {{ (isset($fb_data->max_investment_amt)) ? $fb_data->max_investment_amt : '' }}
                  <?php foreach($currency_all as $curreny): ?>
                    {{ (isset($fb_data->max_investment_currency) && $fb_data->max_investment_currency == $curreny->id) ? $curreny->name : '' }}
                  <?php endforeach; ?>
                  <?php foreach($currency_units as $unit): ?>
                     <?php if($fb_data->max_investment_currency_units && $fb_data->max_investment_currency_units == $unit->id){echo $unit->units.' ('.$unit->amount.')';}else { echo ""; }?>
                  <?php endforeach; ?>
                </div>
              </div>            
            </div>
          </div>
        </div>
      </div>
      @endif
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'IF,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">Industry Focus (Select Multiple)
              </label>
            <div class="col-sm-6">
                <?php 
                  $selected='';
                  foreach($industries as $industry):
                      if(isset($fb_data->industry_focus) && preg_match("~\b".$industry->id."\b~",$fb_data->industry_focus)):
                        if($selected)
                        $selected .= ", ".$industry->name;
                        else
                        $selected = $industry->name;
                      endif;
                  endforeach; 

                  echo $selected;
                ?>
              </select>
            </div>
          </div>
        </div>
      </div>                                                        
      @endif
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'POR,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-md-12">
        <div class="form-group">
          <div class="row">
            <label class="col-sm-6 control-label">Your Current Portfolio</label>
            <div class="col-sm-6">
              <?php
                $portfolio = array(0=>'');
                if(isset($fb_data->portfolio) && $fb_data->portfolio)
                  $portfolio = explode('||',$fb_data->portfolio);
              ?>
              <div class="row" id="append_fb_portfolio">
                <?php
                  echo implode(', ',$portfolio);
                ?>
              </div>  
            </div>    
          </div>
        </div>
      </div>
      @endif
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'PIVD,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-sm-6">
        <div class="form-group">
          <div class="panel-default panel">                              
            <div class="panel-heading">
              <label class="control-label">Add Your Pitch To Investors</label>
            </div>  
            <div class="panel-body">
                        <div id="fb_video_files" class="files">
                          @if($fb_assets_video)                          
                            @foreach($fb_assets_video as $video)
                              @if($video->access=='PUB')
                                <div class="col-md-4">
                                    @if($video->processed==0)
                                      <img src="/uploads/processing.jpg" class="img-responsive ">
                                    @else
                                      <img src="{{$video->thumb_img}}" iframe-src ="https://player.vimeo.com/video/{{$video->url}}" class="img-responsive popup">
                                    @endif
                                </div>
                              @endif  
                            @endforeach
                          @endif
                        </div>
                        <div class="clearfix"></div>
                        <!--<p class="help-block">Upload Video</p>-->
            </div>  
          </div>
        </div>  
      </div>
      @endif
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'PI,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-sm-6">
        <div class="form-group">
          <div class="panel-default panel">                              
            <div class="panel-heading">
              <label class="control-label">Add Your Pitch To Investors</label>
            </div>  
            <div class="panel-body">
                        <div id="fb_pics_files" class="files">
                        @if($fb_assets_data)
                          @foreach($fb_assets_data as $asset)
                            @if($asset->type == 'IMAGES')
                              <div class="col-md-4">
                                @if($asset->access=='PUB')
                                  <img src="{{$asset->url}}" class="img-responsive">
                                @endif
                              </div>
                            @endif
                          @endforeach
                            <!--<p>{{$asset->name}} - <span class="removeTh text-danger" style="cursor:pointer" data-id="{{$asset->id}}" data-url="{{$asset->delete_url}}">remove</span>-->
                        @endif
                            <div class="clearfix"></div>
                        </div>
                        <!--<p class="help-block">Upload pictures</p>-->
            </div>  
          </div>
        </div>                                  
      </div>
      @endif
      <div class="clearfix"></div>
      @if($prof_det->private || (isset($fb_data->private_permission) && strpos($fb_data->private_permission,'O,') ===false) || (isset($prof_det->full_profile) && $prof_det->full_profile))
      <div class="col-sm-6">
        <div class="form-group">
          <div class="panel-default panel">                              
            <div class="panel-heading">
              <label class="control-label">Other Creative Assets</label>
            </div>  
            <div class="panel-body">
                        <div id="fb_doc_files" class="files">
                        @if($fb_assets_data)
                          @foreach($fb_assets_data as $asset)
                            @if($asset->type == 'DOCS')
                              {{--*/ $viewName = @end( @explode( '.', $asset->name ) ) /*--}}
                              @if($viewName=='doc')
                              {{--*/ $file_type='fa-file-word-o' /*--}}
                              @endif
                              @if($viewName=='docx')
                              {{--*/ $file_type='fa-file-word-o' /*--}}
                              @endif
                              @if($viewName=='pdf')
                              {{--*/ $file_type='fa-file-pdf-o' /*--}}
                              @endif
                              @if($viewName=='txt')
                              {{--*/ $file_type='fa-file-text-o' /*--}}
                              @endif
                              @if($viewName=='xls')
                              {{--*/ $file_type='fa-file-excel-o' /*--}}
                              @endif
                              @if($viewName=='xlsx')
                              {{--*/ $file_type='fa-file-excel-o' /*--}}
                              @endif
                              @if($viewName=='ppt')
                              {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                              @endif
                              @if($viewName=='pptx')
                              {{--*/ $file_type='fa-file-powerpoint-o' /*--}}
                              @endif
                              <div class="col-md-4">
                                <!--<div>{{$asset->name}}</div>-->
                                @if($asset->access=='PUB')
                                  <a target="_blank" href="{{asset('/download/fb_assets/'.$asset->id)}}"><i class="fa {{$file_type}} fa-3x"></i></a>
                                @endif  
                              </div>
                            @endif
                          @endforeach
                            <!--<p>{{$asset->name}} - <span class="removeTh text-danger" style="cursor:pointer" data-id="{{$asset->id}}" data-url="{{$asset->delete_url}}">remove</span>-->
                        @endif
                            <div class="clearfix"></div>
                        </div>  
                        <!--<p class="help-block"> Upload documents</p>-->
            </div>  
          </div>
        </div>  
      </div>
      @endif
    </div>                                             
    <!-- End of Funding Business -->
    @else
    <!-- No Funding -->
    <div class="col-sm-12 funding-block" id="funding0">
      <h3>No Funding</h3>
    </div>                                             
    <!-- End of Funding -->
    @endif

  </div>
</div> 
