@extends('layouts.admin.app') @section('content')
Voucher List

@if(Session::has('success'))
{{ Session::get('success') }}

demo test

@endif @if(Session::has('error'))
{{ Session::get('error') }}
@endif
@csrf
Reset
{{-- --}} @php $i = 0; $courses=[] @endphp @foreach($vouchers as $voucher) @php $transactionDate = $voucher->created_at; $new_date = date("d-m-Y h:i:s", strtotime($transactionDate)); $courseIds = explode(',', $voucher->course_id); $courses = DB::table('courses')->whereIn('id', $courseIds)->pluck('name')->all(); $crsname=implode(',',$courses) @endphp {{-- --}} @endforeach
S. No. Registration Date Name Email Mobile CertificationPayable ForAmount Time Detail
{{++$i}} {{-- {{$voucher->created_at->todatestring()}} --}} {{ date('d-m-Y',strtotime($voucher->created_at)) }} {{ $voucher->user_name }} {{ $voucher->email }} {{ $voucher->mobile }} @foreach($courses as $course){{$course}}
@endforeach
{{ $voucher->payable_for }}${{ $voucher->amount }} {{-- {{ $new_date }} --}} {{ date('h:i A',strtotime($voucher->created_at)) }}
@include('layouts.admin.footer')
@endsection