Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecraank committed Mar 13, 2024
1 parent 2e368e9 commit ac109f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Console/Commands/PresentationProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function processPdf($presentation)
for ($i = 1; $i <= $pages; $i++) {
$random = Str::random(7);
$imagename = $random . '-' . $i . '.jpg';
$pdf->setResolution(300);

$pdf->setPage($i)->saveImage(public_path('data/presentations/' . $presentation->id . '/' . $imagename));
$resizeImage = \Intervention\Image\Facades\Image::make(public_path('data/presentations/' . $presentation->id . '/' . $imagename))
Expand Down
2 changes: 1 addition & 1 deletion resources/views/presentations/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
alt="">

@can('delete presentations')
<form class="mb-5" action="{{ route('presentations.destroy', $presentation->id) }}" method="POST"
<form class="mt-5" action="{{ route('presentations.destroy', $presentation->id) }}" method="POST"
onsubmit="return confirm('{{ __('Are you sure to delete this template?') }}')">
@csrf
@method('DELETE')
Expand Down

0 comments on commit ac109f8

Please sign in to comment.