Add order customer phone

This commit is contained in:
Shohrat 2023-09-13 20:35:07 +05:00
parent f4ead7df81
commit 93aa14e969
3 changed files with 13 additions and 5 deletions

View File

@ -133,7 +133,7 @@
</span> </span>
<span class="value"> <span class="value">
{{ $order->customer->phone }} {{ $order->customer_email }}
</span> </span>
</div> </div>

View File

@ -154,7 +154,7 @@
{!! view_render_event('sales.order.customer_group.after', ['order' => $order]) !!} {!! view_render_event('sales.order.customer_group.after', ['order' => $order]) !!}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</accordian> </accordian>
@ -190,7 +190,7 @@
</div> </div>
</div> </div>
@endif @endif
</div> </div>
</div> </div>
</accordian> </accordian>
@endif @endif
@ -274,7 +274,7 @@
</div> </div>
</div> </div>
@endif @endif
</div> </div>
</div> </div>
</accordian> </accordian>
@ -362,7 +362,7 @@
</table> </table>
</div> </div>
</div> </div>
<div class="summary-comment-container"> <div class="summary-comment-container">
<div class="comment-container"> <div class="comment-container">

View File

@ -61,6 +61,14 @@ class Order extends Model implements OrderContract
return $this->customer_first_name . ' ' . $this->customer_last_name; return $this->customer_first_name . ' ' . $this->customer_last_name;
} }
/**
* Get the customer email
*/
public function getCustomerEmailAttribute(): string
{
return $this->customer()->phone;
}
/** /**
* Returns the status label from status code * Returns the status label from status code
*/ */