@extends('admin.layout.base') @section('title', 'Promocodes ') @section('content')

@lang('admin.member.promocodes')

@lang('admin.member.add_new_promocode')
@foreach($promocodes as $index => $promo) @endforeach
@lang('admin.member.id') @lang('admin.member.promocode') @lang('admin.member.discount') Discount Type User Type Starting at @lang('admin.member.expiration') @lang('admin.member.status') Valid Count @lang('admin.member.action')
{{$index + 1}} {{$promo->promo_code}} {{$promo->discount}} @if($promo->discount_type =='flat') Flat @else Percentage @endif @if($promo->user_type =='all') All Users @else New Users @endif {{date('d-m-Y',strtotime($promo->starting_at))}} {{date('d-m-Y',strtotime($promo->expiration))}} @if(date("Y-m-d") <= $promo->expiration) @lang('admin.member.valid') @else @lang('admin.member.expiration') @endif {{$promo->use_count}}
{{ csrf_field() }} @lang('admin.member.edit')
@lang('admin.member.id') @lang('admin.member.promocode') @lang('admin.member.discount') Discount Type User Type Starting at @lang('admin.member.expiration') @lang('admin.member.status') Valid Count @lang('admin.member.action')
@endsection