{{-- --}} Logo
Sản Phẩm
{{--
Liên hệ
--}} {{-- Lịch Sử Mua Hàng --}} @if(!empty(Auth::check()))
Lịch sử mua hàng
@else
Tra cứu đơn hàng
@endif
Giỏ Hàng ({{count($cart)}}) @if(!empty(Auth::check()))
@if($cart && count($cart) > 0) {{-- {{dd($cart)}} --}} @foreach($cart as $item) @endforeach @else
KHÔNG CÓ SẢN PHẨM NÀO TRONG GIỎ HÀNG
@endif
Ảnh Tên Sản Phẩm Giá
{{--$item['anh']--}} {{ \Illuminate\Support\Str::limit( $item->products->ten_san_pham, 30)}} {{number_format($item->price,0,',','.')}}đ
@if($cart && count($cart) > 0)
Tổng tiền: {{ number_format($cartTotal,0,',','.')}} đ
@else @endif
@if($cart && count($cart) > 0) Xem Giỏ Hàng @else Xem Thêm Sản Phẩm @endif
@else
@if($cart && count($cart) > 0) @foreach(Cart::content()->sortByDesc(function($item) { return $item->options->added_at; }) as $item) @endforeach @else
KHÔNG CÓ SẢN PHẨM NÀO TRONG GIỎ HÀNG
@endif
Ảnh Tên Sản Phẩm Giá
{{$item->name}} {{ \Illuminate\Support\Str::limit( $item->name, 30)}} {{number_format($item->price,0,',','.')}}đ
@if($cart && count($cart) > 0)
Tổng tiền: {{ $cartTotal}} đ
@else @endif
@if(session('cart') && count(session('cart')) > 0) Xem Giỏ Hàng {{-- Thanh Toán --}} @else Xem Thêm Sản Phẩm @endif
@endif
@if(!empty(Auth::user())) {{-- {{dd(Auth::user())}} --}} @if(Auth::user()->provider =="google") @elseif(Auth::user()->anh == null) @else @endif @else @endif @if(!empty(Auth::user())) {{Illuminate\Support\Str::limit(Auth::user()->ho_ten, 13)}} @else Tài khoản @endif
    @if(empty(Auth::user()))
  • Đăng nhập
  • Đăng ký
  • Tra cứu đơn hàng
  • @else
  • Tra cứu đơn hàng
  • Thông tin tài khoản
  • Đăng xuất
  • @csrf
    @endif
{{-- chuông thông báo --}} @if(Auth::check())
    @if (count(getUserNotifications()) > 0) @foreach (getUserNotifications() as $notification)
  • {{ $notification->noi_dung }}
  • @endforeach @else
  • Bạn không có thông báo nào
  • @endif
@endif
Danh Mục
  • hi

    Tất cả danh mục ({{CountDanhMuc()}})
  • @if(!empty(getCategoriesParent())) @foreach(getCategoriesParent() as $item)
  • @if($item->icon == null)

    hi

    @else @endif {{ $item->ten_danh_muc }}
    {{-- Hiển thị danh mục con --}} @if(!empty($item->subCategories))
      @foreach($item->subCategories as $subCategory) @include('clients.blocks.category_child', ['child' => $subCategory]) @endforeach
    @endif
  • @endforeach @endif
Logo
@if(!empty(Auth::check()))
Giỏ Hàng @if(!empty(session('cart'))) ({{count(session('cart'))}}) @endif
@if($cart && count($cart) > 0) {{-- {{dd($cart)}} --}} @foreach($cart as $item) @endforeach @else
KHÔNG CÓ SẢN PHẨM NÀO TRONG GIỎ HÀNG
@endif
Ảnh Tên Sản Phẩm Giá
{{--$item['anh']--}} {{ \Illuminate\Support\Str::limit( $item->products->ten_san_pham, 30)}} {{number_format($item->price,0,',','.')}}đ
@if(session('cart') && count(session('cart')) > 0)
Tổng tiền: {{ number_format($cartTotal,0,',','.')}} đ
@else @endif
@if(session('cart') && count(session('cart')) > 0) Xem Giỏ Hàng {{-- Thanh Toán --}} @else Xem Thêm Sản Phẩm @endif
@else
Giỏ Hàng @if(!empty(session('cart'))) ({{count(session('cart'))}}) @endif
@if($cart && count($cart) > 0) @foreach(Cart::content()->sortByDesc(function($item) { return $item->options->added_at; }) as $item) @endforeach @else
KHÔNG CÓ SẢN PHẨM NÀO TRONG GIỎ HÀNG
@endif
Ảnh Tên Sản Phẩm Giá
{{$item->name}} {{ \Illuminate\Support\Str::limit( $item->name, 30)}} {{number_format($item->price,0,',','.')}}đ
@if($cart && count($cart) > 0)
Tổng tiền: {{ $cartTotal}} đ
@else @endif
@if(session('cart') && count(session('cart')) > 0) Xem Giỏ Hàng {{-- Thanh Toán --}} @else Xem Thêm Sản Phẩm @endif
@endif
Sản Phẩm
{{--
Liên hệ
--}}
@if(!empty(Auth::user())) {{-- {{dd(Auth::user())}} --}} @if(Auth::user()->provider =="google") @elseif(Auth::user()->anh == null) @else @endif @else @endif @if(!empty(Auth::user())) {{Illuminate\Support\Str::limit(Auth::user()->ho_ten, 13)}} @else Tài khoản @endif
    @if(empty(Auth::user()))
  • Đăng nhập
  • Đăng ký
  • Tra cứu đơn hàng
  • @else
  • Tra cứu đơn hàng
  • Thông tin tài khoản
  • Lịch sử mua hàng
  • Đăng xuất
  • @csrf
    @endif
Danh Mục
  • hi

    Tất cả danh mục ({{CountDanhMuc()}})
  • @if(!empty(getCategoriesParent())) @foreach(getCategoriesParent() as $item)
  • @if($item->icon == null)

    hi

    @else @endif {{$item->ten_danh_muc}}
      @if(!empty($item->subCategories))
        @foreach($item->subCategories as $subCategory) @include('clients.blocks.category_child', ['child' => $subCategory]) @endforeach
      @endif
  • @endforeach
  • Xem tất cả danh mục
  • @endif
Logo
{{--
--}}
@if(!empty(Auth::check()))
Giỏ Hàng @if(!empty(session('cart'))) ({{count(session('cart'))}}) @endif
@if($cart && count($cart) > 0) {{-- {{dd($cart)}} --}} @foreach($cart as $item) @endforeach @else
KHÔNG CÓ SẢN PHẨM NÀO TRONG GIỎ HÀNG
@endif
Ảnh Tên Sản Phẩm Giá
{{--$item['anh']--}} {{ \Illuminate\Support\Str::limit( $item->products->ten_san_pham, 30)}} {{number_format($item->price,0,',','.')}}đ
@if(session('cart') && count(session('cart')) > 0)
Tổng tiền: {{ number_format($cartTotal,0,',','.')}} đ
@else @endif
@if(session('cart') && count(session('cart')) > 0) Xem Giỏ Hàng {{-- Thanh Toán --}} @else Xem Thêm Sản Phẩm @endif
@else
Giỏ Hàng @if(!empty(session('cart'))) ({{count(session('cart'))}}) @endif
@if($cart && count($cart) > 0) @foreach(Cart::content()->sortByDesc(function($item) { return $item->options->added_at; }) as $item) @endforeach @else
KHÔNG CÓ SẢN PHẨM NÀO TRONG GIỎ HÀNG
@endif
Ảnh Tên Sản Phẩm Giá
{{$item->name}} {{ \Illuminate\Support\Str::limit( $item->name, 30)}} {{number_format($item->price,0,',','.')}}đ
@if($cart && count($cart) > 0)
Tổng tiền: {{ $cartTotal}} đ
@else @endif
@if(session('cart') && count(session('cart')) > 0) Xem Giỏ Hàng {{-- Thanh Toán --}} @else Xem Thêm Sản Phẩm @endif
@endif {{--
Sản Phẩm
--}} {{--
Liên hệ
--}}
@if(!empty(Auth::user())) {{-- {{dd(Auth::user())}} --}} @if(Auth::user()->provider =="google") @elseif(Auth::user()->anh == null) @else @endif @else @endif @if(!empty(Auth::user())) {{Auth::user()->ho_ten}} @else Tài khoản @endif
    @if(empty(Auth::user()))
  • Đăng nhập
  • Đăng ký
  • Tra cứu đơn hàng
  • @else
  • Tra cứu đơn hàng
  • Thông tin tài khoản
  • Lịch sử mua hàng
  • Đăng xuất
  • @csrf
    @endif