@extends('layouts.default', ['appTopMenu' => true]) @section('title', 'Committee') @push('scripts') @endpush @push('head') @endpush @section('content') @php if(!empty($result)){ foreach($result as $res){ $id = $res->id; $comm_id = $res->comm_id; $comm_name = $res->comm_name; $description = $res->description; $from_dt = date("d-m-Y", strtotime($res->from_dt)); $to_dt = ($res->to_dt == null ? "" : date("d-m-Y", strtotime($res->to_dt))); $btn = "Update"; } }else{ $id = 0; $comm_id = ""; $comm_name = ""; $description = ""; $to_dt = ""; $from_dt = ""; $btn = "Submit"; } @endphp

Committee

@if($id == 0)
@else @endif @csrf
@error('txt_meeting_no') {{ $message }} @enderror
@error('txt_meeting_name') {{ $message }} @enderror
@error('txt_meeting_desc') {{ $message }} @enderror
@error('txt_from_date') {{ $message }} @enderror
@error('txt_to_date') {{ $message }} @enderror

Committee Details

@php $sn = 1; foreach($allCommittee as $all){ @endphp @php ++$sn; } @endphp
S.No. Committee No. Committeei Description Active From Active From
{{ $sn }} {{ $all->comm_id }} {{ $all->comm_name }} {{ $all->description}} {{ date("d-m-Y", strtotime($all->from_dt)) }}
@endsection @push('scripts') @endpush