Skip to content

Commit

Permalink
Usuário pode gerar a folha
Browse files Browse the repository at this point in the history
  • Loading branch information
alecostaweb committed Dec 4, 2023
1 parent c02f370 commit d4c28f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/PdfController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class PdfController extends Controller
{
public function folha(Request $request, $codpes){
$this->authorize('boss',$codpes);
$this->authorize('owner',$codpes);

$request->validate([
'in' => 'required|date_format:d/m/Y',
Expand Down
4 changes: 2 additions & 2 deletions resources/views/pdfs/folha.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
@php $col1 = ['','',''] @endphp
@endif

@if(array_key_exists($i+16, $dias))
@php $col2 = App\Utils\Util::computeDayMinutes($computes,$dias[$i+16]); @endphp
@if(array_key_exists($i+17, $dias))
@php $col2 = App\Utils\Util::computeDayMinutes($computes,$dias[$i+17]); @endphp
@else
@php $col2 = ['','',''] @endphp
@endif
Expand Down

0 comments on commit d4c28f0

Please sign in to comment.