@extends('backend.layout') @section('content')
{{ Session::get('success') }}
{{ Session::get('warning') }}
CARD ID | NAME | STATUS | AMOUNT | GENERATED DATE | REDEEMED BY | REDEEMED FROM | ACTION |
---|---|---|---|---|---|---|---|
{{$data->card_id}} | {{\App\Models\User::where(['id' => $data->user_id])->pluck('name')->first()}} | @if($data->status == 0) Valid @elseif($data->status == 1) Redeemed @else Expired @endif | {{$data->card_amount}} | {{$data->generated_date}} | @if(is_null($data->staff_id)) Not Available @else {{\App\Models\User::where(['id' => $data->staff_id])->pluck('name')->first()}} | @endif@if(is_null($data->local_branch_id)) Not Available @else {{\App\Models\LocalBranch::where(['id' => $data->local_branch_id])->pluck('branch_name')->first()}} @endif | Redeem |