@extends('admin.layout.index') @section('title') کوپن ها @endsection @section('script') @endsection @section('content')
لیست کوپن ها ({{ $coupons->total() }})
ایجاد کوپن
@foreach ($coupons as $key => $coupon) @endforeach
# کد نوع کاربر باقی مانده تاریخ انقضا عملیات
{{ $coupons->firstItem() + $key }} {{ $coupon->code }} {{ $coupon->type }} @if($coupon->user_id==null) برای همه کاربران @else {{ $coupon->User->first_name.' '.$coupon->User->last_name }} @endif {{ $coupon->times }} {{ verta($coupon->expired_at)->format('Y-m-d') }}
{{ $coupons->render() }}
@include('admin.coupons.modal') @endsection