@extends('layouts.default') @section('title', 'Batch List') @section('header-links') @include('includes.headers.batches') @endsection @section('new_button') addCreate batch @endsection @section('content')
@foreach($batches as $batch) @php $tnames = ''; @endphp @foreach ($batch->btechnologies as $tech) @if(array_key_exists($tech->technology_id, $technologies)) @php $tnames = ($tnames!='')?($tnames.', '. $technologies[$tech->technology_id]):($tnames.''.$technologies[$tech->technology_id]); @endphp @endif @endforeach @endforeach @if(count($batches) == 0) @endif
Batch ID Batch Name Technologies Trainers Start Date End Date Status Action
{{ $batch->batch_id }} {{ ucwords($batch->name) }} {{ Str::limit($tnames, 15) }} {{ $batch->trainer->name }} {{ Date::parse($batch->start_date)->format(env('APP_DATE')) }} {{ Date::parse($batch->end_date)->format(env('APP_DATE')) }} {{ $batch->status==1?'Active':'Inactive' }} create
No data
@stop