Skip to content

Commit

Permalink
code commit for relese fund component cheanges
Browse files Browse the repository at this point in the history
  • Loading branch information
dassudip2001 committed Nov 21, 2022
1 parent 9a83405 commit c71363b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/Http/Controllers/ReleseFund/ReleseFundController.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,20 @@ public function pdf(){
$releseFund2=DB::table('projects')
->join('relese_funds','relese_funds.projec_fund_relese_id',"=",'projects.id')
->get();

$pdf=PDF::loadView('relese-fund.print',compact('releseFund2'));
return $pdf->download('fund.pdf');
}
// generate pdf one row
public function pdfForm(Request $request,$id){
return DB::table('relese_funds')
// ->join('projects','projects.id','=','relese_funds.projec_fund_relese_id')
// ->join('fund_relese_budget_modules','fund_relese_budget_modules.relese_fund_id','=','relese_funds.id')
->where('id', $id)->get();




$releseFund1= DB::table('relese_funds')
->join('projects','projects.id',"=",'relese_funds.projec_fund_relese_id')
->get()
->where('id', $id);
$pdf=PDF::loadView('relese-fund.pdf_download',compact('releseFund1'));
return $pdf->download('funding.pdf');
}
Expand Down

0 comments on commit c71363b

Please sign in to comment.