@extends('layouts.erp_theme_01') @section('content')

All Training Participants

@if (session('err_msg'))
{{ session('err_msg') }}
@endif
@foreach($staffs as $item) @endforeach
Staff ID Staff Name Email Department First Mail Second Mail Third Mail
@if($item->photo=="") {{ $item->staff_id }} @else {{ $item->staff_id }} @endif {{ $item->staff_id }} {{ $item->fname . ($item->mname != "" ? " " . $item->fname : "" ) . " " . $item->lname }} {{ $item->email }} @php $deptname = "not set"; $olddeptid = "0"; @endphp @foreach( $staff_depts as $staff_dept) @if($staff_dept->staff_id == $item->staff_id ) @php $deptname = $staff_dept->dept_name; $olddeptid = $staff_dept->dept_id ; @endphp @break @endif @endforeach {{ $deptname }} @if($item->first_mail == "not sent") @php $hide2 = $hide3= true; @endphp @else {{ $item->second_mail }} @endif @if( $hide2 ) {{ $item->second_mail }} @else @if($item->second_mail == "not sent") @php $hide3= true; @endphp @else {{ $item->second_mail }} @endif @endif @if( $hide3 ) {{ $item->third_mail }} @else @if($item->third_mail == "not sent") @else {{ $item->third_mail }} @endif @endif
@endsection @section("script") @endsection