@extends('emails.layout')
@section('content')
    <tr style="border-collapse:collapse">
        <td align="center" style="padding:0;Margin:0;padding-top:15px">
            <h1
                style="Margin:0;line-height:24px;mso-line-height-rule:exactly;font-family:arial, 'helvetica neue', helvetica, sans-serif;font-size:20px;font-style:normal;font-weight:normal;color:#333333">
                <strong>¡Hola {{ $purchase->user->person->first_name }} {{ $purchase->user->person->second_name }} {{ $purchase->user->person->first_surname }} {{ $purchase->user->person->second_surname }}!</strong>
            </h1>
            
        </td>
    </tr>
    <tr style="border-collapse:collapse">
        <td align="left" style="padding:0;Margin:0;padding-left:40px;padding-right:40px;padding-top:40px;">
            <h1
                style="Margin:0;line-height:24px;mso-line-height-rule:exactly;font-family:arial, 'helvetica neue', helvetica, sans-serif;font-size:20px;font-style:normal;font-weight:normal;color:#333333">
                <strong>Resumen de Compra:</strong>
            </h1>
            {{-- <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center;">
                <strong>Estado:</strong> {{ $purchase->status->name }}
            </p> --}}
            <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center;">
                <strong>Estado:</strong> {{ $purchase->status->name }}
            </p>
            {{-- <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center;">
                <strong>Precio a pagar:</strong> ${{ number_format($clothes,2) }}
            </p> --}}
            <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center;">
                <strong>Precio a pagar:</strong> ${{ number_format($clothes,2) }}
            </p>
            {{-- <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center">
                <strong>Envío:</strong> ${{ number_format($shipping,2) }}
            </p> --}}
            <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center">
                <strong>Envío:</strong> ${{ number_format($shipping,2) }}
            </p>
            {{-- <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center">
                <strong>Total:</strong> ${{ number_format($total,2) }}
            </p> --}}
            <h1
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center">
                <strong>Total:</strong> ${{ number_format($total,2) }}
            </h1>
        </td>
    </tr>
    <tr style="border-collapse:collapse">
        <td align="left" style="padding:0;Margin:0;padding-left:40px;padding-right:40px;padding-top:40px">
            <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center">
                Revise su pedido en el siguiente enlace: <a href="{{ route('compras.index') }}"><strong>Detalles de Compra</strong></a>.
            </p>
        </td>
    </tr>
    <tr style="border-collapse:collapse">
        <td align="left" style="padding:0;Margin:0;padding-left:40px;padding-right:40px;padding-top:40px;padding-bottom: 40px;">
            <p
                style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#666666;text-align:center">
                Saludos.
            </p>
        </td>
    </tr>
@endsection
