title: Laravel Excel - blank sheets when creating multiple sheets
body: <p>I had this working, using Laravel 4 and Laravel Excel to export data from mySQL. I have objects for Regtype and Attendee and I want one sheet per regtype with all related attendees. I had a single sheet of attendees exporting great. Now I've added a loop for the regtypes and I'm able to get multiple sheets but all sheets are blank!</p>
  
  <p>Perhaps I have to use shareView? I wouldn't think so.. I get no errors and none of the data I pass to the blade template is displaying.</p>
  
  <p>My export function:
          public function export() 
      {
          $date = date('Y_m_d');
          \Excel::create('CMO_Connect_Attendees_Export_'.$date, function($excel) {
          $regtypes = Regtype::all();
          foreach ($regtypes as $regtype) {
              if( $regtype->attendees(3)->count() ) {</p>
  
  <pre><code>        $excel-&gt;sheet($regtype-&gt;name,  array('regtype' =&gt; $regtype), function($sheet) {
              $date = date('Y_m_d');
              $attendees = new Attendee;
  
              $atts = Attendee::where('block_id', '=', \Input::get('block_id'))
                  -&gt;where('regtype_id', '=', $regtype-&gt;id)
                  -&gt;get();
                  $sheet-&gt;setStyle(array(
                      'font' =&gt; array(
                          'name'      =&gt;  'Arial',
                          'size'      =&gt;  12,
                          'bold'      =&gt;  false
                      )
                  ));
              $sheet-&gt;loadView('attendees.export', array('atts' =&gt; $atts))-&gt;with('curdate',$date)-&gt;with('regtype_name',$regtype-&gt;name);
              $atts = '';
          });
          } //endif
      } //endforeach
  
      $excel-&gt;export('xls');
      });
  }
  </code></pre>
  
  <p>And the blade template I'm passing data to (I pass the attendees and also the date and name of the regtype to display at the top of the sheet:</p>
  
  <pre><code>&lt;html&gt;
  &lt;table&gt;
    &lt;tr&gt;
      &lt;td colspan="11"&gt;Attendees Export - {{ $curdate }} - {{ $regtype_name }}&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;First Name&lt;/td&gt;
      &lt;td&gt;Last Name&lt;/td&gt;
      &lt;td&gt;Company&lt;/td&gt;
      &lt;td&gt;Title&lt;/td&gt;
      &lt;td&gt;Email&lt;/td&gt;
      &lt;td&gt;Phone&lt;/td&gt;
      &lt;td&gt;Address&lt;/td&gt;
      &lt;td&gt;Addres 2&lt;/td&gt;
      &lt;td&gt;City&lt;/td&gt;
      &lt;td&gt;State&lt;/td&gt;
      &lt;td&gt;Zip&lt;/td&gt;
      &lt;td&gt;Date Created&lt;/td&gt;
    &lt;/tr&gt;
  @foreach($atts as $att)
    &lt;tr&gt;
      &lt;td&gt; {{ $att-&gt;firstname }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;lastname }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;company }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;title }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;email }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;phone }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;address }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;address2 }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;city }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;state }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;zip }} &lt;/td&gt;
      &lt;td&gt; {{ $att-&gt;created_at }} &lt;/td&gt;
    &lt;/tr&gt;
  @endforeach
  &lt;/table&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thanks for any help!</p>