@extends('layouts.app') @push('styles') @endpush @section('content')
@if (Auth::user()->hasRole('Admin') && !isset($_GET['siswa_id']))

{{ $title }} Siswa

@foreach($siswa as $data) @endforeach
No Nama Username No Identitas Jenis Kelamin No Telp Tempat / Tanggal Lahir Pendidikan Terakhir Alamat Action
{{ $loop->iteration }} {{ $data->siswa->nama_siswa }} {{ $data->username }} {{ $data->siswa->no_identitas }} {{ $data->siswa->jenis_kelamin }} {{ $data->siswa->no_hp_siswa }} {{ $data->siswa->tempat_lahir }} / {{ $data->siswa->tanggal_lahir }} {{ $data->siswa->tingkatan_sekolah }} {{ $data->siswa->alamat_siswa }} @can('edit '.$menu) id}}" class="btn btn-sm btn-primary"> Show @endcan
@else

{{ $title }}

@can('create '.$menu) Tambah Data @endcan
@foreach($datas as $data) @php $day = ['Senin','Selasa','Rabu','Kamis','Jumat','Sabtu','Minggu']; @endphp @foreach ($day as $a) @endforeach @foreach ($data->subkegiatan as $b) @foreach ($day as $days) @php $kegiatan_hari = 'kegiatan_'.strtolower($days); @endphp @endforeach @endforeach @endforeach
Minggu {{ $data->minggu }} ({{date('d F Y : h i s', strtotime($data->created_at))}})
{{ csrf_field() }} @can('create '.$menu) Tambah Kegiatan @endcan @can('edit '.$menu) Edit @endcan @can('delete '.$menu) @endcan
Peran Tindakan{{$a}}Target Hasil Dibuat Action
{{$b->peran}} {{$b->tindakan}}{{$b->$kegiatan_hari}}{{$b->target}} {{$b->hasil}} {{date('d F Y : h i s', strtotime($b->created_at))}}
{{ csrf_field() }} @method('DELETE') @can('edit '.$menu) Edit @endcan @can('delete '.$menu) @endcan
@endif
@endsection @push('scripts') @endpush {{-- @can('laporan') @endcan @foreach($datas as $data) @can('laporan') @endcan @endforeach
NoNamaJenis Kegiatan Minggu Peran Tindakan Hari Nama Kegiatan Target Hasil Action
{{ $loop->iteration }} {{ $data->user->nama }} {{ $data->jenisKegiatan->nama_jenis_kegiatan }} {{ $data->minggu }} {{ $data->peran }} {{ $data->tindakan }} {{ $data->hari }} {{ $data->kegiatan }} {{ $data->target }} {{ $data->hasil }}
{{ csrf_field() }} Tambah Kegiatan @can('edit '.$menu) Edit @endcan @can('delete '.$menu) @endcan
--}}