@extends('layouts.default', ['appTopMenu' => true]) @section('title', 'Committee') @push('scripts') @endpush @push('head') @endpush @section('content') @php //print_r($result); if(!empty($result)){ foreach($result as $res){ $id = $res->id; $comm_id = $res->meeting_id; $meeting_date = date("d-m-Y", strtotime($res->meeting_date)); $agenda_image = $res->agenda_image; $btn = "Update"; } }else{ $id = 0; $comm_id = ""; $meeting_date = ""; $agenda_image=""; $btn = "Submit"; } @endphp @if(session('status')) {{session('status')}} @endif Agenda Uploading @if($id == 0) @else @endif @csrf Committee SELECT COMMITEE @php foreach($allCommittee as $all){ $set_selected = ''; if($comm_id == $all->id) { $set_selected = 'selected'; } @endphp {{ $all->comm_id."-".$all->comm_name }} @php } @endphp @error('comm_id') {{ $message }} @enderror COMMITEES MEMBERS & SECRETARY INFO Meeting Date @error('txt_meeting_date') {{ $message }} @enderror Committee Agenda Details Srno Committee Date Agenda @php $sn = 1; foreach($allCommitteeAgenda as $allAgenda){ @endphp {{$sn}} {{$allAgenda->comm_name}} {{ date("d-m-Y", strtotime($allAgenda->meeting_date))}} {{ $allAgenda->agenda_image}} @php $sn++; } @endphp @endsection @push('scripts') @endpush