@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 Meeting No. @error('txt_meeting_no') {{ $message }} @enderror Name @error('txt_meeting_name') {{ $message }} @enderror Description @error('txt_meeting_desc') {{ $message }} @enderror From Date @error('txt_from_date') {{ $message }} @enderror To Date @error('txt_to_date') {{ $message }} @enderror Is Active Yes No Committee Details S.No. Committee No. Committeei Description Active From Active From @php $sn = 1; foreach($allCommittee as $all){ @endphp {{ $sn }} {{ $all->comm_id }} {{ $all->comm_name }} {{ $all->description}} {{ date("d-m-Y", strtotime($all->from_dt)) }} @php ++$sn; } @endphp @endsection @push('scripts') @endpush