@extends('layouts.user_type.auth') @section('content') @if(collect(["BOSS", "RESPONSABLE EXECUTION", "COMPTABLE", "CHEF EQUIPE"])->contains(auth()->user()->role)) @if(str_replace('-', ' ', Request::path()) != "administration") @if(collect(["BOSS", "RESPONSABLE EXECUTION", "COMPTABLE", "CHEF EQUIPE"])->contains(auth()->user()->role)) Ajouter un pointage horaire @endif @endif Ajout d'un pointage horaire × Personnel * Choisir . . . {{ $ps = DB::table("personnels")->where("statut", "1")->where("grade", "PERSONNEL")->orderby("nom")->get() }} @foreach($ps as $p) {{ $p->nom }} {{ $p->prenom }} @endforeach Nombre d'heures Nombre de minutes Justification LISTE DES POINTAGES PERSONNEL POINTEUR DATE POINTAGE HEURE MINUTE JUSTIFICATION @if(collect(["BOSS", "RESPONSABLE EXECUTION", "COMPTABLE", "CHEF CHANTIER"])->contains(auth()->user()->role)) ACTION @endif @foreach($pointages as $pointage) {{ DB::table("personnels")->find($pointage->personnel)->nom ?? '' }} {{ DB::table("personnels")->find($pointage->personnel)->prenom ?? '' }} {{ DB::table("personnels")->find($pointage->chef)->nom ?? '' }} {{ date_format(date_create($pointage->date), "d/m/Y")?? '' }} {{ $pointage->nombre_heure ?? '' }} {{ $pointage->nombre_minute ?? '' }} {{ $pointage->justification ?? '' }} @if(collect(["BOSS", "RESPONSABLE EXECUTION", "COMPTABLE", "CHEF CHANTIER"])->contains(auth()->user()->role)) @if(collect(["BOSS", "RESPONSABLE EXECUTION"])->contains(auth()->user()->role)) @endif @endif @endforeach {{ $pointages->links() }} @endif @endsection