Murupp Logo
  • About Us
  • @php $collections = DB::table('master_collections')->whereNull('deleted_by')->orderBy('id', 'asc')->get(); @endphp
  • Shop by Collection
      @foreach ($collections as $collection)
    • {{ $collection->collection_name }}
    • @endforeach
  • @php use Illuminate\Support\Facades\DB; $categories = DB::table('master_product_category')->whereNull('deleted_by')->orderBy('id','asc')->get(); @endphp
  • Shop by Category
      @foreach ($categories as $category)
    • {{ $category->category_name }}
    • @endforeach
  • @if(Auth::check())

    Welcome, {{ Auth::user()->name ?? Auth::user()->phone }}

    My Account Forgot Password? Logout
    @else
    Login

    Don’t have an account? Register

    @endif
  • @php use App\Models\Wishlist; if (Auth::check()) { $ListCount = Wishlist::where('user_id', Auth::id())->whereNull('deleted_by')->count(); } else { $ListCount = Wishlist::where('session_id', Session::getId())->whereNull('deleted_by')->count(); } @endphp
  • {{ $ListCount }}
  • @php use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Session; use App\Models\Carts; if (Auth::check()) { $cartCount = Carts::where('user_id', Auth::id())->whereNull('deleted_by')->count(); } else { $cartCount = Carts::where('session_id', Session::getId())->whereNull('deleted_by')->count(); } @endphp
  • {{ $cartCount }}
Shopping Cart
@php $userId = Auth::id(); $sessionId = Session::getId(); $cartItems = DB::table('carts') ->join('product_details', 'carts.product_id', '=', 'product_details.id') ->where(function ($query) use ($userId, $sessionId) { if ($userId) { $query->where('carts.user_id', $userId); } else { $query->where('carts.session_id', $sessionId); // Directly use session_id } }) ->select('carts.*', 'product_details.product_name', 'product_details.slug') ->whereNull('carts.deleted_at') ->get(); $subtotal = 0; function number_format_indian($num) { $num = round($num); // Remove decimal points $num = (string) $num; $len = strlen($num); if ($len <= 3) { return $num; } $lastThree = substr($num, -3); $remaining = substr($num, 0, -3); $remaining = preg_replace('/\B(?=(\d{2})+(?!\d))/', ',', $remaining); return $remaining . ',' . $lastThree; } @endphp @forelse($cartItems as $cartItem) @php $subtotal += $cartItem->product_total_price; @endphp
{{ $cartItem->product_name ?? 'Product Name' }}
{{ $cartItem->size }}{{ $cartItem->colors ? ' / ' . $cartItem->colors : '' }}
@if(!empty($cartItem->print))
Print: {{ $cartItem->print }}
@endif
- +
{{ number_format_indian($cartItem->product_total_price) }}
@empty
No items found in your cart.
@endforelse
Subtotal
{{ number_format_indian($subtotal) }}
Check Out
Or continue shopping
Search
  • About Us
  • @php $collections = DB::table('master_collections')->whereNull('deleted_by')->orderBy('id', 'asc')->get(); @endphp
  • Shop by Collection
      @foreach ($collections as $collection)
    • {{ $collection->collection_name }}
    • @endforeach
  • @php $categories = DB::table('master_product_category')->whereNull('deleted_by')->orderBy('id','asc')->get(); @endphp
  • Shop by Category
      @foreach ($categories as $category)
    • {{ $category->category_name }}
    • @endforeach
Wishlist @if(Auth::check()) {{ Auth::user()->name }} @else Login @endif
@if(Auth::check())

Welcome, {{ Auth::user()->name }}

My Account My Orders Forgot Password? Logout @else Login Register @endif
@php $footer = \App\Models\Footer::first(); @endphp

{!! $footer->about !!}

  • {{ $footer->email ?? '' }}
  • +91 {{ $footer->contact_number ?? '' }}