@extends("frontend.main") @section("content")
| Số dư tài khoản | {{ number_format(auth('users')->user()->credit,0,',','.') }} đ |
| Tổng tiền đã chi | {{ number_format(((int)auth('users')->user()->total - (int)auth('users')->user()->credit),0,',','.') }} đ |
| Tổng tiền đã nạp | {{ number_format((int)auth('users')->user()->total ,0,',','.') }} đ |
@switch($item->type) @case(1) Giảm {{$item->discount}} % trên giá trị đơn hàng trong lần thanh toán đầu tiên. @break @case(2) Giảm {{number_format($item->discount,0,',','.')}} đ trên giá trị đơn hàng trong lần thanh toán đầu tiên. @break @endswitch