<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 xl3  @click="$store.state.ClientDetails = true" slot="activator">
                    <div class="Info">
                        <div class="TitleFa">
                            <v-badge color="red">
                                <span> {{ props.item.TitleFa }} </span>
                            </v-badge>
                        </div>
                        <div class="TitleEn Context"> {{ props.item.TitleEn }} </div>
                    </div>
                </v-flex>
                <v-flex xl3 class="Tasks text-lg-center">
                    <v-chip color="grey lighten-3" text-color="black" @click="$store.state.TaskTimeline = true" slot="activator">
                        <v-avatar class="purple WM-Color-White"> 2 </v-avatar>
                        وظیفه انجام نشده
                    </v-chip>
                    <v-btn small outline fab color="purple" @click.native="$store.state.TaskAdd = true" slot="activator">
                        <v-icon>fas fa-plus</v-icon>
                    </v-btn>
                </v-flex>

                <v-flex xl3 class="text-lg-center">
                    <v-chip color="grey lighten-3" text-color="black" @click="$store.state.UserRoles = true" slot="activator">
                        <v-avatar class="black WM-Color-White"> 2 </v-avatar>
                        دسترسی
                    </v-chip>
                    <v-btn small outline fab color="black" @click.native="$store.state.UserRoles = true" slot="activator">
                        <v-icon>fas fa-pencil-alt</v-icon>
                    </v-btn>
                </v-flex>
                <v-flex xl3 class="Buttons text-lg-right">
                    <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 @click.native="$store.state.UserDetails = true" slot="activator" fab color="cyan" dark><v-icon dark>fas fa-align-right</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 @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 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>
<script>
export default {
    props: {
        TileClass: { default: "xl12" },
        props: { default: "" },
    },
}
</script>
<style scoped lang="scss">
    .WM-Tile {
        width:100%;
        padding:10px;
        border: 1px solid #eeeeee;
        transition: 0.4s;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    .WM-Tile:hover {
        border: 1px solid #000;
    }
    .WM-Tile.Shadowed {
        box-shadow: 0 10px 30px 0 rgba(0,0,0,.5);
        border-radius:5px;
    }
    .WM-Tile .Content {
        background-color:#fff;
        height:100%;
    }
    .WM-Tile .Image {
        width:100%;
    }
    .Content {
        padding:10px;
        margin:0px;
        position: relative;
    }
    .Content .Info {
        text-align:right;
        margin-right: 30px;
        cursor: pointer;
    }
    .Content .Check {
       position: absolute;
       right: 0px;
       width: 40px;
    }
    .Content .Number {
       position: absolute;
        right: -14px;
        bottom: -16px;
        line-height: 40px;
        width: 40px;
        font-size: 40px;
        color: rgb(224, 224, 224);
    }
    .Info .TitleEn {
        font-size:13px;
    }
    //-----------------------------------Price
    .Content .Price {
        text-align:left;
    }
    .Content .Price .Unit {
        font-size:12px;
    }
    .Price .NewPrice {
        font-size:24px;
    }
    .Price .OldPrice {
        font-size:14px;
        margin-left: 20px;
        text-decoration: line-through;
        text-decoration-color: #ee3552;
        color: #ee3552;
        margin-top: -5px;

    }

    //---------------------------Buttons-------------------------------

    .v-btn--floating.v-btn--outline.v-btn:hover {
        background-color: inherit !important;
    }


</style>
