@extends('layouts.layout') @section('title', 'Chit Scheme') @section('content') @php function schemename($id) { $result = DB::table('scheme_name')->where('id',$id)->first(); return isset($result->scheme_name)?$result->scheme_name:''; } function groupcount($sid,$gid) { return DB::table('chit_details')->where('scheme_id', $sid)->where('group_id', $gid)->count(); } @endphp

Group List

@if(Session::has('message')) @endif @if(count($groups)>0) @foreach($groups as $key=>$item) @endforeach @else @endif
# Scheme Name Group Installment Amount Chit Value No.of Installment Bonus Amount Total Amount Status Action
{{ $key+1 }} {{ isset($item->scheme_id)?schemename($item->scheme_id):'' }} @if($item->scheme_id && $item->id) {{ $item->chit_name }} ({{groupcount($item->scheme_id,$item->id)}}) @else {{ $item->chit_name }} (0) @endif {{ number_format($item->installment_amount) }} {{ number_format($item->chit_value) }} {{ $item->no_of_installment }} @php $bonus_amount = $item->bonus_amount; if($item->bonus_type==2) { $bonus_amount = ($bonus_amount / 100) * $item->chit_value; } @endphp {{ number_format($bonus_amount) }} {{ number_format($item->chit_value + $bonus_amount) }} @if($item->status=='0') Inactive @endif @if($item->status=='1') Active @endif @include('shared._actions', [ 'entity' => 'groups', 'id' => $item->id ])

No records found!

Click here to add a new record.
@endsection