@extends('principal.layouts.app') @push('style') @endpush @section('content')

Dashboard

{{--
Total User

230000

--}}
Apporved Request

{{ $approvedtotalTransaction ?? 0}}

Rejected Request

{{ $rejrejectedtotalTransaction ?? 0 }}

Pending Request

{{ $pendingtotalTransaction ?? 0 }}

@forelse ($conferenceLists as $conferenceList) @empty @endforelse
Request ID Conference Name Conference Date Total Cost Status View Details
{{'REQ' . '_' . Str::random(8) }} {{ $conferenceList->conference_title }} {{ date('d-m-Y', strtotime($conferenceList->created_at)) }}   {{number_format($conferenceList->registratiion_no + $conferenceList->lodging?->sum('lodging') + $conferenceList->meals?->sum('meal') + $conferenceList->milages?->sum('milage') + $conferenceList->miscellaneous?->sum('miscellaneous') + $conferenceList->parking?->sum('parking') + $conferenceList->toll?->sum('tolls'), 2) }} @if($conferenceList->is_approved==1 && $conferenceList->principal_id == auth()->user()->id){{ "Approved" }} @elseif($conferenceList->is_approved==2 && $conferenceList->principal_id == auth()->user()->id){{ "Rejected" }} @else {{ "Pending" }} @endif
No conferences found.
@endsection @push('scripts') @endpush