<template>
    <v-flex :class="TileClass" >
        <div class="WM-Tile">
            <v-layout row wrap class="Content">
                <div class="Check">
                    <WM-Checkbox v-model="props.selected" ItemText="" :ItemID="'Check'+props.item.id"></WM-Checkbox>
                </div>
                <div class="Number En">12</div>
                <v-flex xl2 class="Info" @click="$store.state.ClientDetails = true" slot="activator">
                    <div class="TitleFa">
                        <v-badge color="red">
                            <template v-slot:badge>
                                <span> {{ props.item.Level }} </span>
                            </template>
                            <span> {{ props.item.TitleFa }} </span>
                        </v-badge>
                    </div>
                    <div class="TitleEn Context"> {{ props.item.TitleEn }} </div>
                </v-flex>
                <v-flex xl1 class="Status text-lg-center">
                    <v-chip color="red" text-color="white"> بسته شده </v-chip>
                </v-flex>
                <v-flex xl1 class="Time text-lg-center">
                    سه شنبه  21 مهرماه <br> 12:22
                </v-flex>

                <v-flex xl2 class="text-lg-center">
                    <v-chip color="grey lighten-3" text-color="black" @click="$store.state.EventTimeline = true" slot="activator">
                        <v-avatar class="cyan WM-Color-White"> 2 </v-avatar>
                        رویداد پیش رو
                    </v-chip>
                    <v-btn small outline fab color="cyan" @click.native="$store.state.EventAdd = true" slot="activator">
                        <v-icon>fas fa-plus</v-icon>
                    </v-btn>
                </v-flex>

                <v-flex xl2 class="Price En LTR  text-lg-center">
                    <v-btn small outline fab color="black" @click.native="$store.state.TransactionAdd = true" slot="activator">
                        <v-icon>fas fa-plus</v-icon>
                    </v-btn>
                    <span class="NewPrice" @click="$store.state.TransactionTimeline = true" slot="activator">
                        {{ props.item.Price }} <span class="Unit"> IRT </span>
                    </span>
                </v-flex>

                <v-flex xl3 class="Buttons text-lg-center">
                    <v-tooltip top color="black">
                        <v-btn small @click.native="$store.state.ClientDetails = true" slot="activator" fab color="cyan" dark><v-icon dark>fas fa-align-right</v-icon></v-btn>
                        <span> جزئیات مشتری </span>
                    </v-tooltip>
                    <v-badge color="black" overlap >
                        <template v-slot:badge >
                            <span> {{ props.item.Level }} </span>
                        </template>
                        <v-tooltip top color="black">
                            <v-btn small @click.native="$store.state.ClientComments = true" slot="activator" fab color="black" dark><v-icon dark>fas fa-comments</v-icon></v-btn>
                            <span> کامنت ها </span>
                        </v-tooltip>
                    </v-badge>
                    <v-tooltip top color="black">
                        <v-btn small @click.native="$store.state.SendSMS = true" slot="activator" fab color="orange" dark><v-icon dark>fas fa-comment-alt</v-icon></v-btn>
                        <span> ارسال پیام کوتاه </span>
                    </v-tooltip>
                    <v-tooltip top color="black">
                        <v-btn small @click.native="$store.state.SendEmail = true" slot="activator" fab color="purple" dark><v-icon dark>fas fa-envelope</v-icon></v-btn>
                        <span> ارسال ایمیل </span>
                    </v-tooltip>
                    <v-tooltip top color="black">
                        <v-btn small slot="activator" fab color="grey lighten-4"><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
                        <span> ویرایش </span>
                    </v-tooltip>
                    <v-tooltip top color="black">
                        <v-btn small slot="activator" fab color="red" dark><v-icon dark>fas fa-trash-alt</v-icon></v-btn>
                        <span> حذف آیتم </span>
                    </v-tooltip>
                </v-flex>
            </v-layout>
        </div>
    </v-flex>
</template>
