@extends('layouts.admin.master') @section('title', 'Member Card') @section('content')
Member Card
@csrf
@error('customer')
{{ $message }}
@enderror
@error('member_card_type')
{{ $message }}
@enderror
@error('card_code')
{{ $message }}
@enderror
@error('create_date')
{{ $message }}
@enderror
@error('expire_date')
{{ $message }}
@enderror
@if (count($memberCards) != 0) @php $count = 1; @endphp @foreach ($memberCards as $memberCard) @php $expireDate = \Carbon\Carbon::parse($memberCard['expire_date']); // Replace this with your actual expiry date @endphp @if (\Carbon\Carbon::now()->gt($expireDate)) @else @endif @if ($memberCard['member_card_is_discontinued'] == 0) @elseif ($memberCard['member_card_is_discontinued'] == 1) @endif @php $count++; @endphp @endforeach @endif
No Card Code Customer Name Phone Number Card Type Name Discount Type Amount Discount Percentage Discount Create Date Expire Date Expired Remark Discontinued Edit Delete
{{ $count }} {{ $memberCard['member_card_code'] }} {{ $memberCard['customer_name'] }} {{ $memberCard['phone_number'] }} {{ $memberCard['member_card_type_name'] }} {{ $memberCard['discount_type'] }} {{ $memberCard['amount_discount'] }} {{ $memberCard['percent_discount'] }} {{ date('d-M-Y', strtotime($memberCard['create_date'])) }} {{ date('d-M-Y', strtotime($memberCard['expire_date'])) }} {{ $memberCard['member_card_remark'] }}
@endsection