@extends('backend.layouts.master') @section('style') @include('backend.layouts.datatable.style') @endsection @section('content')

Discount

@foreach ($infos as $value) @endforeach
SL Game Name Description Amount Start Date End Date Start Time End Time Online Status Status Action
{{ $loop->iteration }} {{ $value->game ? $value->game->name : '' }} {{ $value->name }} {{ $value->description }} {{ $value->amount }} {{ date('d-m-Y', strtotime($value->start_date)) }} {{ date('d-m-Y', strtotime($value->end_date)) }} {{ date('h:i A', strtotime($value->start_time)) }} {{ date('h:i A', strtotime($value->end_time)) }} @if ($value->online) Online @else On Place @endif @if ($value->status) Active @else Inactive @endif
@endsection @section('script') @include('backend.layouts.datatable.script') @endsection