@extends('layouts.default', ['appTopMenu' => true]) @section('title', 'All Registered Clerk') @push('head') @endpush @section('content')
Registered Clerks
@php $sn = 1; foreach($reg_clerk as $ac){ if(strlen($ac->clerk_id) == 2){ $maxclk = $ac->clerk_id; }else{ $maxclk = "0".$ac->clerk_id; } $enroll_no = str_replace('-','',$ac->adv_enroll_number); $id = $enroll_no."".$ac->adv_enroll_year."".$maxclk; $dateOfBirth = \Carbon\Carbon::parse($ac->c_dob); // Replace with your date of birth $currentDate = \Carbon\Carbon::now(); $age = $dateOfBirth->diffInYears($currentDate); @endphp @php ++$sn; } @endphp
S.No. Advocate Name Clerk ID Clerk Name Age/Gender Mobile Email Address Office Address Photo Signature ID Proof Undertaking
{{ $sn; }} {{ $ac->user_name }} {{ $id }} {{ $ac->clerk_name }} {{ $age." / ".$ac->c_gender }} {{ $ac->c_mobile }} {{ $ac->c_email }} {{ $ac->c_address }} {{ $ac->c_office_address }}
@endsection @push('scripts') @endpush