<!DOCTYPE html>
<html>
<head>
    <title>Laravel 9 Generate PDF From View</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }
        .container {
            max-width: 600px;
            margin: 20px auto;
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        h1 {
            font-size: 24px;
            margin-bottom: 30px;
            text-align: center;
        }
        .info {
            margin-bottom: 24px;
            display: flex;
        }
        .info span {
            /* font-weight: bold; */
            width: 150px;
            display: inline-block;
        }
        .info p {
            margin: 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Customer Information</h1>
        <div class="info" style="display: flex;">
            <span>First Name:</span>
            <span>{{$customers_data->first_name}}</span>
        </div>
        <div class="info" style="display: flex;">
            <span>ID:</span>
            <span>{{$customers_data->id}}</span>
        </div>
        <div class="info" style="display: flex;">
            <span>Date of Birth:</span>
            <span>{{ \Carbon\Carbon::parse($customers_data->date_of_birth)->format('d-m-Y') }}</span>
        </div>
        <div class="info">
            <span>Phone Number:</span>
            <span>{{$customers_data->phone_number}}</span>
        </div>
        <div class="info">
            <span>Email Address:</span>
            <span>{{$customers_data->email_address}}</span>
        </div>
        <div class="info">
            <span>Onboarded Date:</span>
            <span>{{ \Carbon\Carbon::parse($customers_data->created_at)->format('d-m-Y') }}</span>
        </div>
    </div>
</body>
</html>
