{{ __('Dashboard') }}

@php $amount_claim = 0; $total_gifts = 0; $company = auth()->user()->company; $company->companyclaim = \App\Models\Claim::first(); if (collect($company->companyclaim)->count() > 0) { $claim_id = $company->companyclaim->id; $amount_claim = $company->companyclaim->amount_claim; $user_claim_allowed = $company->companyclaim->user_claim_allowed; $maximumclaim = $company->companyclaim->first_user; $today = date('Y-m-d'); if (\Illuminate\Support\Facades\Auth::user() && $claim_id) { //->where('company_id', $company->id) $todayClaims = \App\Models\UserClaim::where('claim_id', $claim_id) ->where('user_id', Auth::user()->id) ->whereRaw("DATE(created_at) = '$today' ") ->count(); $totalClaims = \App\Models\UserClaim::where('claim_id', $claim_id) ->where('user_id', Auth::user()->id) ->sum('amount'); if ( \Illuminate\Support\Facades\Auth::user()->type == 0 && $todayClaims < $user_claim_allowed && $totalClaims <= $maximumclaim ) { $amount_claim = (float) $amount_claim; } } } if (@$company->regulargifts && @$company->regulargifts->is_regular_free == 1) { $total_gifts = (collect($company->regulargifts)->count() > 0 ? $company->regulargifts->receipent_will_get + $company->regulargifts->buyer_will_get_first_time : 0) + $amount_claim; } @endphp
General Setting
@csrf {{-- Payout Days --}}
@error('payout_days') {{ $message }} @enderror
{{-- minimum order limit --}}
@error('minimum_order_limit') {{ $message }} @enderror
{{-- order processing time --}}
@error('order_processing_time') {{ $message }} @enderror
{{-- --}}
{{-- --}}
{{ QrCode::size(170)->backgroundColor(255, 255, 255)->generate(route('download.app') . '?type=business&id=' . auth()->user()->company->id) }}