v1.5.19b - Fixed MultipleEvents

Updated DomPDF
This commit is contained in:
Anders
2021-04-29 10:12:59 +02:00
parent 7d6f501986
commit 99a29094d8
5 changed files with 93 additions and 93 deletions
@@ -6,6 +6,7 @@ use App\MultipleEvents;
use App\MultipleEventsParent;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Barryvdh\DomPDF\Facade as PDF;
//Not in use yet
use App\Event;
use App\News;
@@ -124,14 +125,13 @@ class MultipleEventsController extends Controller
}
/**
* Show the form for editing the specified resource.
* Show the form for editing the specified resource.-
*
* @param \App\MultipleEvents $multipleeventsController
* @return \Illuminate\Http\Response
* @param int $id
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function edit(MultipleeventsController $id)
public function edit($id)
{
dd("asd");
$multiEvent = MultipleEvents::find($id);
return Response::detect("multiple-events.edit", ["multiEvent" => $multiEvent]);
}
@@ -211,8 +211,7 @@ class MultipleEventsController extends Controller
public function genPDF($Id){
dd("Ka");
$multiEvent = MultipleEventsParent::query()->join("multiple_events", "multiple_events.multiple_events_parent_id", "=", "multiple_events_parent.id")->where("id", "=", $Id)->first();
$multiEvent = MultipleEventsParent::query()->join("multiple_events", "multiple_events.multiple_events_parent_id", "=", "multiple_events_parent.id")->where("multiple_events_parent.id", "=", $Id)->first();
$var = 149;
$multiEvent->name = substr($multiEvent->name, 0, $var);