shell bypass 403
UnknownSec Shell
:
/
home
/
forge
/
mpc.brannanatkinson.com
/
resources
/
views
/
livewire
/
admin
/ [
drwxrwxr-x
]
upload
mass deface
mass delete
console
info server
name :
dashboard.blade.php
<div> @can('admin') <x-slot name="title"> Dashboard </x-slot> <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> {{ __('Housing Hope Dashboard') }} </h2> </x-slot> <div> <div class="my-8 text-center"> <ul class="inline-block"> <li class="inline-block"><a href="/cp"><button class="px-4 py-3 rounded-md bg-mp-blue-green hover:bg-mp-light-lime text-xl text-white font-bolder">Manage Content</button></a></li> <li class="inline-block"><a href="/admin/hosts"><button class="px-4 py-3 rounded-md bg-mp-blue-green hover:bg-mp-light-lime text-xl text-white font-bolder cursor-pointer">Manage Hosts</button></a></li> </ul> </div> <div class="max-w-5xl mx-auto"> @livewire('results') </div> <div class="mt-8 max-w-5xl mx-auto"> <div class="my-3 text-3xl font-bold"> @php echo date("Y") @endphp Host Summary </div> <div class="grid grid-cols-3 gap-8 mb-10"> <div class="p-8 text-center bg-gray-200 rounded-md flex flex-col justify-center items-center"> <div class="mb-6 uppercase"> Total Raised by Hosts </div> <div class="mb-8 text-4xl font-bold"> ${{ App\Models\Gift::where('user_id','!=', null)->where('created_at', '>', date('Y').'-01-01')->sum('gift_total') }} </div> </div> <div class="p-8 text-center bg-gray-200 rounded-md flex flex-col justify-center items-center"> <div class="mb-6 uppercase"> Total Gifts by Hosts </div> <div class="mb-8 text-4xl font-bold"> {{ App\Models\Gift::where('user_id','!=', null)->where('created_at', '>', date('Y').'-01-01')->count() }} </div> </div> <div><!-- blank --></div> </div> <div class="mt-8 grid grid-cols-5 gap-4"> <div class=" col-span-2 font-bold">Host Name</div> <div class=" font-bold">Amount Raised</div> <div class=" font-bold">Total Gifts</div> <div class=" font-bold">Total Items</div> @foreach( $hosts as $host ) <div class=" col-span-2">{{ $host->name }}</div> <div class="">${{ App\Models\Gift::where('user_id', '=', $host->id )->where('created_at', '>', date('Y').'-01-01')->sum('gift_total') }}</div> <div class="">{{ App\Models\Gift::where('user_id', '=', $host->id )->where('created_at', '>', date('Y').'-01-01')->count() }}</div> <div class="">{{ $host->items->where('pivot.created_at', '>', date('Y').'-01-01')->sum('pivot.item_quantity') }}</div> @endforeach </div> </div> <div class="mt-10 max-w-5xl mx-auto"> <div class="my-3 text-3xl font-bold"> @php echo date("Y") @endphp Giving Catalog Item Summary </div> <div class="mb-6 grid grid-cols-4 gap-6"> @foreach ( $gift_items as $item ) <div class="bg-white text-center flex flex-col rounded-md overflow-hidden"> <div class="mb-6 w-full"> <img src="{{ env('APP_URL') }}/storage/{{ $item->featured_image[0]['path'] }}" alt="" class="object-fit"> </div> <div class="mb-4 text-3xl"> {{ App\Models\Item::where('statamic_id', $item->id)->first()->sales()->count() > 0 ? App\Models\Item::where('statamic_id', $item->id)->first()->sales()->first()->quantity : 0 }} </div> <div class="mb-8 text-sm"> @if( $item->item_sponsor->count() > 0 ) {{ $item->item_sponsor->first()->title }} @endif </div> </div> @endforeach </div> </div> <div class="pb-16 mt-12 max-w-5xl mx-auto"> <div class="mt-8 mb-6 text-3xl font-bold"> @php echo date("Y") @endphp Gift Summary </div> <div class="grid grid-cols-5 gap-4"> <div class=" col-span-2 font-bold">Donor</div> <div class=" font-bold">Amount</div> <div class=" font-bold">Credited Host</div> <!-- add purchase date --> <div class=""></div> @foreach( App\Models\Gift::orderBy('gift_total', 'DESC')->where('created_at', '>', date('Y').'-01-01')->get() as $gift ) <div class=" col-span-2">{{ $gift->donor->full_name }}</div> <div class="">${{ $gift->gift_total }}</div> <div class=""> @if ( $gift->user_id != null ) {{ App\Models\User::where('id' , '=', $gift->user_id )->first()->name }} @endif </div> <div class=""></div> @endforeach </div> </div> </div> @elsecan('edit host') <x-slot name="title"> Dashboard for {{ auth()->user()->name }} </x-slot> <div> <div class="my-6 text-3xl text-center">Housing Hope Dashboard for {{ auth()->user()->name }}</div> <div class="mb-10 text-center"> @php $user = auth()->user() @endphp <a class="text-mp-coral" href="/hosts/{{ $user->host_url }}" target="_blank">View your public profile</a> | <a class="text-mp-coral" href="{{ route('admin.update.hosts') }}">Edit your profile</a> </div> <div class="max-w-5xl mx-auto"> <div class="mb-8 grid grid-cols-3 gap-8"> <div class="p-8 text-center bg-gray-200 rounded-md flex flex-col justify-center items-center"> <div class="mb-6 uppercase"> Total Raised </div> <div class="mb-8 text-4xl font-bold"> ${{ App\Models\Gift::where('user_id', '=', auth()->user()->id )->where('created_at', '>', date('Y').'-01-01')->sum('gift_total') }} </div> </div> <div class="p-8 text-center bg-gray-200 rounded-md flex flex-col justify-center items-center"> <div class="mb-6 uppercase"> Total Gifts </div> <div class="mb-8 text-4xl font-bold"> {{ App\Models\Gift::where('user_id', '=', auth()->user()->id )->where('created_at', '>', date('Y').'-01-01')->count() }} </div> </div> <div class="p-8 text-center bg-gray-200 rounded-md flex flex-col justify-center items-center"> <div class="mb-6 uppercase"> Total Donors </div> <div class="mb-8 text-4xl font-bold"> {{ App\Models\Gift::where('user_id', '=', auth()->user()->id )->where('created_at', '>', date('Y').'-01-01')->count('donor_id') }} </div> </div> </div> @php $user = auth()->user(); if ( $user->UserMeta->goal != null ){ $hostGoalProgress = ( App\Models\Gift::where('user_id', '=', $user->id )->where('created_at', '>', date('Y').'-01-01')->sum('gift_total') / $user->UserMeta->goal ) * 100; } @endphp @if ( $user->UserMeta->goal != null ) <div class="mb-12"> <div class="relative pt-1"> <div class="mt-6 mb-4 text-xl text-center"> You are {{ number_format( $hostGoalProgress, 0 ) }}% toward your goal of <span class="text-green-700 font-bold">${{ $user->UserMeta->goal }}</span> for The Mary Parrish Center </div> <div class="overflow-hidden h-4 mb-4 text-xs flex rounded-full bg-gray-200"> <div style="width:@php echo $hostGoalProgress @endphp%" class="shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-mp-blue-green"></div> </div> </div> </div> @endif </div> <div class="mt-10 max-w-5xl mx-auto"> <div class="my-3 text-3xl"> Donor Summary </div> <div class="grid grid-cols-3 gap-8"> <div class="font-bold">Donor Name</div> <div class="font-bold">Amount </div> <div class="font-bold">Items </div> @foreach( App\Models\Gift::where('user_id', '=', auth()->user()->id )->where('created_at', '>', date('Y').'-01-01')->get() as $gift ) <div class="">{{ $gift->donor->full_name }}</div> <div class="">${{ $gift->gift_total }} </div> <div class="">{{ $gift->items->sum('pivot.item_quantity') }}</div> @endforeach </div> </div> </div> @endcan </div>
© 2026 UnknownSec