@extends('layouts.app') @section('btn') @can('create', \App\Models\Patient::class) {{-- {{dd(getDuplicateUsers())}} --}} Ajouter un patient @endcan @endsection @section('content')
@foreach($patients as $patient) @php if ($patient->no == null){ $patient->no = nopatient($patient->id); $patient->update(); } @endphp @endforeach
Code patient Prénom Nom Adresse locale Téléphone Date Actions
{{$patient->no}} {{$patient->first_name}} {{$patient->last_name}} {{$patient->primary_address}} {{$patient->country_code_phone}} {{$patient->phone}} {{$patient->created_at->format('d/m/Y H:i:s')}} @can('view', $patient) @endcan @can('update', $patient) @endcan @can('delete', $patient) @endcan
@endsection @section('scripts') @endsection