@extends('layouts.master') @section('css') @endsection @section('breadcrumb')

{{ __('Bulk Email') }}

@endsection @section('content')
@if ($request->has('event_id') && $request->event_id != 'all') @php $totalCount = count($participants); @endphp

Total: {{ $totalCount }}

Select all {{ $totalCount }}

@elseif (count($users) > 0 || count($participants) > 0) @php $totalCount = count($users) + count($participants); @endphp

Total: {{ $totalCount }}

Select all {{ $totalCount }}

@endif
@csrf
@if (count($users) > 0) @if (!$request->has('event_id') || $request->event_id == 'all')

Members

@foreach ($users as $user)

{{ $user->name }}

@endforeach

@endif @endif @if (isset($participants) && count($participants) > 0)

Participants

@foreach ($participants as $participant)

{{ $participant->name }}

@endforeach

@endif
@endsection @section('js') @endsection