refs #443 Revenue create page new customer and category modal transform.

This commit is contained in:
cuneytsenturk
2018-08-15 18:03:21 +03:00
parent e83eade56a
commit 41f54e64f6
9 changed files with 414 additions and 183 deletions

View File

@ -513,10 +513,10 @@ class Invoices extends Controller
*/
public function export()
{
\Excel::create('invoices', function($excel) {
\Excel::create('invoices', function ($excel) {
$invoices = Invoice::with(['items', 'histories', 'payments', 'totals'])->filter(request()->input())->get();
$excel->sheet('invoices', function($sheet) use ($invoices) {
$excel->sheet('invoices', function ($sheet) use ($invoices) {
$sheet->fromModel($invoices->makeHidden([
'company_id', 'parent_id', 'created_at', 'updated_at', 'deleted_at', 'attachment', 'discount', 'items', 'histories', 'payments', 'totals', 'media'
]));