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

Request

@forelse ($conferenceLists as $conferenceList) @empty @endforelse
Request ID Conference Name Conference Date Approval Cost Total Cost Approved By Status View Details
{{ '#' . substr(md5(microtime()), 0, 8) }} {{ $conferenceList->conference_title }} {{ date('d-m-Y', strtotime($conferenceList->created_at)) }}   {{ number_format($conferenceList->registratiion_no + $conferenceList->lodgingApproval?->sum('lodging') + $conferenceList->mealsApproval?->sum('meal') + $conferenceList->milagesApproval?->sum('milage') + $conferenceList->miscellaneousApproval?->sum('miscellaneous') + $conferenceList->parkingApproval?->sum('parking') + $conferenceList->tollApproval?->sum('tolls'), 2) }}   {{ 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->is_principal_approved == 1 && $conferenceList->is_sup_approved == 1 && $conferenceList->principal_id != null && $conferenceList->superentiend_id != null) {{ $conferenceList->principals?->first_name . ' ' . $conferenceList->principals?->last_name . '(' . 'Principal' . ')' }}
{{ $conferenceList->superentiends?->first_name . ' ' . $conferenceList->superentiends?->last_name . '(' . 'Superentiend' . ')' }} @elseif( $conferenceList->is_approved == 1 && $conferenceList->is_principal_approved == 1 && $conferenceList->principal_id != null) {{ $conferenceList->principals?->first_name . ' ' . $conferenceList->principals?->last_name . '(' . 'Principal' . ')' }} @elseif( $conferenceList->is_approved == 1 && $conferenceList->is_sup_approved == 1 && $conferenceList->superentiend_id != null) {{ $conferenceList->superentiends?->first_name . ' ' . $conferenceList->superentiends?->last_name . '(' . 'Superentiend' . ')' }} {{-- @elseif($conferenceList->is_approved == 2) {{ 'rejected' }} --}} @else {{ 'Pending' }} @endif
@if ( $conferenceList->is_mark_as_paid == 1 && $conferenceList->account_manager_id == auth()->user()->id && $conferenceList->is_all_approved == 1) {{ 'Finalized' }} @elseif ( $conferenceList->is_mark_as_paid == 1 && $conferenceList->account_manager_id == auth()->user()->id && $conferenceList->is_all_approved == 0) {{ 'Mark As Paid' }} {{-- @elseif ( $employee_conferences->is_mark_as_paid == 0 && $employee_conferences->account_manager_id == auth()->user()->id && $employee_conferences->is_all_approved == 0) {{ 'Mark As Paid' }} --}} @elseif($conferenceList->is_approved == 2 && $conferenceList->account_manager_id == auth()->user()->id) {{ 'Rejected' }} @else {{ 'Pending' }} @endif
No conferences found.
@endsection @push('scripts') @endpush @section('modal') @endsection