Wow Tripz
  • Home
  • About
  • Tripz
    @forelse($tripTypesWithPackages as $type => $packages)
    {{ ucwords(str_replace('-', ' ', $type)) }}
      @foreach($packages as $package)
    • {{ Str::limit($package->title, 30) }}
    • @endforeach
    @empty
    No labled tripz available at the moment.
    @endforelse
    View All Tours
  • Quick Links
    Booking & Info
    • How to Book
    • Book Now
    • @php $customer = Auth::guard('customer')->user(); @endphp @if(!$customer)
    • Login
    • @else
    • @csrf
    • @endif
    • Client Reviews
    Legal
    • Terms & Conditions
    • Terms of Use
    • Privacy Policy
    Other Links
    • Travel Insurance
    • B2B Login
    • Careers
    • FAQs
  • Gallery
  • Blog
    @if($blogs_header->isEmpty())
    No blogs available at the moment.
    @else @foreach ($blogs_header->chunk(3) as $chunk)
      @foreach ($chunk as $blog)
    • {{ \Illuminate\Support\Str::limit($blog->title, 50) }}
    • @endforeach
    @endforeach @endif
    View All Blogs
  • @php use App\Models\Booking; use App\Models\GeneralSetting; use App\Models\Customer; @endphp
  • Contact
  • @php $customer = Auth::guard('customer')->user(); @endphp @if(!$customer) Login @else @php $photo = null; if (!empty($customer->profile_photo)) { $decoded = json_decode($customer->profile_photo, true); $photo = $decoded['url'] ?? null; } @endphp @php $conversionRate = GeneralSetting::first()->referral_point_value ?? 10; $referralCount = \App\Models\Customer::where(function ($query) use ($customer) { $query->where('referred_by', $customer->id) ->orWhere('referred_by_manual', $customer->id); })->count(); $confirmedReferralCount = \App\Models\Customer::where(function ($query) use ($customer) { $query->where('referred_by', $customer->id) ->orWhere('referred_by_manual', $customer->id); })->whereHas('bookings', function ($query) { $query->where('status', 'purchased'); })->count(); $earnedAmount = ($customer->referral_points ?? 0) * $conversionRate; @endphp
    • Dashboard
    • Points: {{ $customer->referral_points ?? 0 }}
      Referrals: {{ $referralCount }}
      Successful: {{ $confirmedReferralCount }}
      Balance: ₹{{ number_format($earnedAmount, 2) }}
      @if(!empty($customer->referral_code)) Code: {{ $customer->referral_code }}
      @endif 1 Point = ₹{{ $conversionRate }}

    • @csrf
    @endif