| Current Path : /var/www/html/LLCF-APP/app/Exports/ |
| Current File : /var/www/html/LLCF-APP/app/Exports/PettyCashBookExport.php |
<?php
namespace App\Exports;
use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\FromView;
class PettyCashBookExport implements FromView
{
protected $entries;
public function __construct($entries)
{
$this->entries = $entries;
}
public function view(): View
{
return view('admin.petty-cash-book.exports.excel', [
'entries' => $this->entries
]);
}
}