<commit_before><!DOCTYPE html>
<?php use Palmabit\Catalog\Models\Product; ?>
<?php $profile_info = (object)Session::get('profile_info'); ?>
<?php $body['order'] = Session::get($body['session_order_key']); ?>
<html lang="it">
<head>
    <meta charset="utf-8">
</head>
<body>
<h2>{{Config::get('authentication::app_name')}}: Ordine ricevuto</h2>
<div>
    Grazie, {{ $body['email'] }}
    <strong>Ordine numero {{$body['order']->id}}</strong>
    <br/>
    <h3>Dettagli cliente: </h3>
    <?php $user_profile = $body['user_profile']; ?>
    @if($user_profile)
    <ul>
        <li>
            <strong>Codice cliente: </strong> {{$user_profile->code}}
        </li>
        <li>
            <strong>Tipo utente: </strong> {{$user_profile->profile_type}}
       </li>
        <li>
            <strong>Ragione sociale: </strong> {{$user_profile->company}}
        </li>
    </ul>
    @else
      <h3>Dettagli non disponibili.</h3>
    @endif
    <h3>Dettagli ordine: </h3>
    @foreach($body['order']->getRowOrders() as $order)
        <ul>
            <?php $product = Product::find($order->product_id); ?>
            <li>
                <strong>Nome: </strong>{{$product->name}}
            </li>
            <li>
                <strong>Code: </strong>{{$product->code}}
            </li>
            <li>
                <strong>Quantità: </strong>{{$order->quantity}}
            </li>
            <li>
                <strong>Prezzo unitario: </strong>{{round($order->total_price / $order->quantity, 2)}}
            </li>
            <li>
                <strong>Prezzo totale: </strong>{{$order->total_price}}
            </li>
            <li>
                <strong>Tipo prezzo applicato: {{L::t($order->price_type_used)}}</strong><commit_msg>fix mail sent admin<commit_after><!DOCTYPE html>
<?php use Palmabit\Catalog\Models\Product; ?>
<?php $profile_info = (object)Session::get('profile_info'); ?>
<?php $body['order'] = Session::get($body['session_order_key']); ?>
<html lang="it">
<head>
    <meta charset="utf-8">
</head>
<body>
<h2>{{Config::get('authentication::app_name')}}: Ordine ricevuto</h2>
<div>
    Grazie, {{ $body['email'] }}
    <strong>Ordine numero {{$body['order']->id}}</strong>
    <br/>
    <h3>Dettagli cliente: </h3>
    <?php $user_profile = $body['user_profile']; ?>
    @if($user_profile)
    <ul>
        <li>
            <strong>Codice cliente: </strong> {{isset($user_profile->code) ? $user_profile->code : 'non disponibile'}}
        </li>
        <li>
            <strong>Tipo utente: </strong> {{isset($user_profile->profile_type) ? $user_profile->profile_type : 'Non disponibile'}}
       </li>
        <li>
            <strong>Ragione sociale: </strong> {{isset($user_profile->company) ? $user_profile->company : 'Non disponibile'}}
        </li>
    </ul>
    @else
      <h3>Dettagli non disponibili.</h3>
    @endif
    <h3>Dettagli ordine: </h3>
    @foreach($body['order']->getRowOrders() as $order)
        <ul>
            <?php $product = Product::find($order->product_id); ?>
            <li>
                <strong>Nome: </strong>{{$product->name}}
            </li>
            <li>
                <strong>Code: </strong>{{$product->code}}
            </li>
            <li>
                <strong>Quantità: </strong>{{$order->quantity}}
            </li>
            <li>
                <strong>Prezzo unitario: </strong>{{round($order->total_price / $order->quantity, 2)}}
            </li>
            <li>
                <strong>Prezzo totale: </strong>{{$order->total_price}}
            </li>
            <li>
                <strong>Tipo prezzo applicato: {{L::t($order->price_type_used)}}</strong>
{'fraction_non_alphanumeric': 0.20147219193020718, 'fraction_numerical': 0.0054525627044711015, 'mean_word_length': 2.3113718411552346, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 154, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1202632', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1214, 'n_words': 209}