/
home
/
sjslayjy
/
public_html
/
assets
/
app
/
Exports
/
Upload File
HOME
<?php namespace App\Exports; use App\User; use Illuminate\Contracts\View\View; use Maatwebsite\Excel\Concerns\FromView; use DB; class StocksummeryExport implements FromView { public $stocks; public $user_type; function __construct($stocks = null, $user_type = null) { $this->stocks = $stocks; $this->user_type = $user_type; } public function view(): View { return view('exports.stock-summery', [ 'stocks' => $this->stocks, 'user_type'=>$this->user_type ]); } }