-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from alecostaweb/issue_35
Exibindo o saldo de horas
- Loading branch information
Showing
17 changed files
with
281 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
database/migrations/2023_12_06_171850_update_carga_horaria_in_grupos_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class UpdateCargaHorariaInGruposTable extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('grupos', function (Blueprint $table) { | ||
$table->integer('carga_horaria'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('grupos', function (Blueprint $table) { | ||
$table->dropColumn('carga_horaria')->default('20'); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,15 @@ | ||
@foreach ($registros as $registro) | ||
<br> | ||
@if($registro->type == 'in') | ||
<i class="fas fa-sign-in-alt text-success"></i> | ||
<a href="/registros/{{ $registro->id }}"> | ||
({{ $registro->status }}) {{ $registro->created_at->format('d/m/Y - H:i') }} (Entrada)</a> | ||
@else | ||
<i class="fas fa-sign-out-alt text-danger"></i> | ||
<a href="/registros/{{ $registro->id }}"> | ||
({{ $registro->status }}) {{ $registro->created_at->format('d/m/Y - H:i') }} (Saída)</a> | ||
@endif | ||
|
||
@can('admin') | ||
@if($registro->status == 'válido') | ||
<form style="display: inline;" method="POST" action="registros/{{ $registro->id }}/invalidate"> | ||
@csrf | ||
@method('PATCH') | ||
<button type="submit" class="btn btn-danger btn-sm mb-1" title="Invalidar registro"><i class="fa fa-thumbs-down"></i> Invalidar</button> | ||
</form> | ||
@else | ||
{{ $registro->analise }} | ||
@endif | ||
@endcan | ||
|
||
<tr> | ||
<td> | ||
@if($registro->type == 'in') | ||
<i class="fas fa-sign-in-alt text-success"></i> | ||
@can('boss') <a href="/registros/{{ $registro->id }}"> @endcan | ||
({{ $registro->status }}) {{ $registro->created_at->format('d/m/Y - H:i') }} (Entrada) @can('boss') </a> @endcan | ||
@else | ||
<i class="fas fa-sign-out-alt text-danger"></i> | ||
@can('boss') <a href="/registros/{{ $registro->id }}"> @endcan | ||
({{ $registro->status }}) {{ $registro->created_at->format('d/m/Y - H:i') }} (Saída) @can('boss') </a> @endcan | ||
@endif | ||
</td> | ||
</tr> | ||
@endforeach |
Oops, something went wrong.