@extends('layouts.master') @section('title', 'Activity List') {{-- --}} @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header')

Report of Activity

{{--

Hello! This is Sandbox

--}}
Report of Activity
@hasanyrole('Admin|Officer') {{-- Import All Participants --}} Import Activity Add @endhasanyrole
{{--
@role('Admin' | 'Officer') Import Activity Add @elseif('Officer') @if ($userofficer && $userofficer->user_status == 'on') Add @endif @endrole
--}}
{{--
--}} {{--
--}}
@foreach ($activitylist as $i => $item) @php $dateBegin = $item->activity_date_begin ? Carbon::parse($item->activity_date_begin)->format('d-m-Y') : null; $dateEnd = $item->activity_date_end ? Carbon::parse($item->activity_date_end)->format('d-m-Y') : null; @endphp @endforeach
No. Code Academic Year Activity Name Type Club Date of Activity Status Manage
{{ ++$i }} {{ $item->activity_code }} {{ $item->academic_year }} {{ $item->activity_name_en }} @if ($item->activity_name_en == '') {{ $item->activity_name_th }} @endif {{-- {{ $item->activity_type1 }} --}} {{ app('App\Http\Controllers\ActivityController')->activity_type1($item->activity_id) }} {{ $item->club_name }} @if ($dateBegin && $dateEnd) {{ $dateBegin }} - {{ $dateEnd }} @elseif ($dateBegin) {{ $dateBegin }} @elseif ($dateEnd) {{ $dateEnd }} @else - @endif @if ($item->activity_status == '1') @elseif($item->activity_status == '2') @endif {{-- @auth --}} {{-- @if (auth()->user()->hasRole('Student')) --}} {{-- @role('Student') --}} {{-- @endrole --}} {{-- @endif --}} {{-- @endauth --}} @role('Admin') {{-- @if (Auth::user()->hasRole('Admin')) --}} @endrole {{-- @endif --}} {{-- @endauth --}} {{-- @endif --}} {{-- --}}
@include('layouts.footer') @endsection