@extends('layouts.master') @push('head') @endpush @section('background-image', 'https://z8games.akamaized.net/cfna/web/main/ShopItem/webshop_background.jpg') @section('bg-y', '-50px') @section('css') @endsection @section('content') @include('cfp.components.error_alert')
@php $zp=$user_zp->CurrZP ?? 0; $ep = $user_ep->EVENT_POINT ?? 0; @endphp
@foreach ($zp_normal as $zp_normal_item)
IMG_URL }}> @if ( $zp_normal_item->ITEM_TYPE == 'V' ) @elseif ( $zp_normal_item->ITEM_TYPE == 'N' ) @elseif ( $zp_normal_item->ITEM_TYPE == 'H' ) @endif
{{ $zp_normal_item->ITEM_NAME }}
{{ $zp_normal_item->PRICE_ZP }} ZP

{{ $zp_normal_item->ITEM_DESC }}

@if ( $zp > $zp_normal_item->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($zp-$zp_normal_item->PRICE_ZP) .'') @php ($buy_button='
') @php ($gift_button='
') @elseif ( $zp < $zp_normal_item->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($zp-$zp_normal_item->PRICE_ZP) .'') @php ($buy_button='
') @php ($gift_button='
') @endif {{ __("shop.buy") }} @if($player_authority == 0) Gift @endif @if ($zp_normal_item->END_DATE < "3000-12-31") UNTIL: {{ $zp_normal_item->END_DATE }} @endif
@endforeach {{ $zp_normal->onEachSide(5)->appends(['shop_type' => 'zp', 'tab' => 'normal'])->links("pagination.cf-pagination", ["paginator" => $zp_normal]) }}
@foreach ($zp_weapons as $zp_weapon)
IMG_URL }}> @if ( $zp_weapon->ITEM_TYPE == 'V' ) @elseif ( $zp_weapon->ITEM_TYPE == 'N' ) @elseif ( $zp_weapon->ITEM_TYPE == 'H' ) @endif
{{ $zp_weapon->ITEM_NAME }}
{{ $zp_weapon->PRICE_ZP }} ZP

{{ $zp_weapon->ITEM_DESC }}

@if ( $zp > $zp_weapon->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($zp-$zp_weapon->PRICE_ZP) .'') @php ($buy_button='
') @php ($gift_button='
') @elseif ( $zp < $zp_weapon->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($zp-$zp_weapon->PRICE_ZP) .'') @php ($buy_button='
') @php ($gift_button='
') @endif {{ __("shop.buy") }} @if($player_authority == 0) Gift @endif @if ($zp_weapon->END_DATE < "3000-12-31") UNTIL: {{ $zp_weapon->END_DATE }} @endif
@endforeach {{ $zp_weapons->onEachSide(5)->appends(['shop_type' => 'zp', 'tab' => 'weapons'])->links("pagination.cf-pagination", ["paginator" => $zp_weapons]) }}
@foreach ($zp_crates as $zp_crate)
IMG_URL }}> @if ( $zp_crate->ITEM_TYPE == 'V' ) @elseif ( $zp_crate->ITEM_TYPE == 'N' ) @elseif ( $zp_crate->ITEM_TYPE == 'H' ) @endif
{{ $zp_crate->ITEM_NAME }}
{{ $zp_crate->PRICE_ZP }} ZP

{{ $zp_crate->ITEM_DESC }}

@if ( $zp > $zp_crate->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($zp-$zp_crate->PRICE_ZP) .'') @php ($buy_button='
') @php ($gift_button='
') @elseif ( $zp < $zp_crate->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($zp-$zp_crate->PRICE_ZP) .'') @php ($buy_button='
') @php ($gift_button='
') @endif {{ __("shop.buy") }} @if($player_authority == 0) Gift @endif @if ($zp_crate->END_DATE < "3000-12-31") UNTIL: {{ $zp_crate->END_DATE }} @endif
@endforeach {{ $zp_crates->onEachSide(5)->appends(['shop_type' => 'zp', 'tab' => 'crates'])->links("pagination.cf-pagination", ["paginator" => $zp_crates]) }}
@foreach ($zp_vfx as $zp_vfx_item)
IMG_URL }}> @if ( $zp_vfx_item->ITEM_TYPE == 'V' ) @elseif ( $zp_vfx_item->ITEM_TYPE == 'N' ) @elseif ( $zp_vfx_item->ITEM_TYPE == 'H' ) @endif
{{ $zp_vfx_item->ITEM_NAME }}
{{ $zp_vfx_item->PRICE_ZP }} ZP

{{ $zp_vfx_item->ITEM_DESC }}

@if ( $zp > $zp_vfx_item->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($zp-$zp_vfx_item->PRICE_ZP) .'') @php ($buy_button='
') @php ($gift_button='
') @elseif ( $zp < $zp_vfx_item->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($zp-$zp_vfx_item->PRICE_ZP) .'') @php ($buy_button='
') @php ($gift_button='
') @endif {{ __("shop.buy") }} @if($player_authority == 0) Gift @endif @if ($zp_vfx_item->END_DATE < "3000-12-31") UNTIL: {{ $zp_vfx_item->END_DATE }} @endif
@endforeach {{ $zp_vfx->onEachSide(5)->appends(['shop_type' => 'zp', 'tab' => 'vfx'])->links("pagination.cf-pagination", ["paginator" => $zp_vfx]) }}
@foreach ($ep_normal as $ep_normal_item)
IMG_URL }}> @if ( $ep_normal_item->ITEM_TYPE == 'V' ) @elseif ( $ep_normal_item->ITEM_TYPE == 'N' ) @elseif ( $ep_normal_item->ITEM_TYPE == 'H' ) @endif
{{ $ep_normal_item->ITEM_NAME }}
{{ $ep_normal_item->PRICE_ZP }} EP

{{ $ep_normal_item->ITEM_DESC }}

@if ( $ep > $ep_normal_item->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($ep-$ep_normal_item->PRICE_ZP) .'') @php ($buy_button='
') @elseif ( $ep < $ep_normal_item->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($ep-$ep_normal_item->PRICE_ZP) .'') @php ($buy_button='
') @endif {{ __("shop.buy") }} @if ($ep_normal_item->END_DATE < "3000-12-31") UNTIL: {{ $ep_normal_item->END_DATE }} @endif
@endforeach {{ $ep_normal->onEachSide(5)->appends(['shop_type' => 'ep', 'tab' => 'normal'])->links("pagination.cf-pagination", ["paginator" => $ep_normal]) }}
@foreach ($ep_weapons as $ep_weapon)
IMG_URL }}> @if ( $ep_weapon->ITEM_TYPE == 'V' ) @elseif ( $ep_weapon->ITEM_TYPE == 'N' ) @elseif ( $ep_weapon->ITEM_TYPE == 'H' ) @endif
{{ $ep_weapon->ITEM_NAME }}
{{ $ep_weapon->PRICE_ZP }} EP

{{ $ep_weapon->ITEM_DESC }}

@if ( $ep > $ep_weapon->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($ep-$ep_weapon->PRICE_ZP) .'') @php ($buy_button='
') @elseif ( $ep < $ep_weapon->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($ep-$ep_weapon->PRICE_ZP) .'') @php ($buy_button='
') @endif {{ __("shop.buy") }} @if ($ep_weapon->END_DATE < "3000-12-31") UNTIL: {{ $ep_weapon->END_DATE }} @endif
@endforeach {{ $ep_weapons->onEachSide(5)->appends(['shop_type' => 'ep', 'tab' => 'weapons'])->links("pagination.cf-pagination", ["paginator" => $ep_weapons]) }}
@foreach ($ep_crates as $ep_crate)
IMG_URL }}> @if ( $ep_crate->ITEM_TYPE == 'V' ) @elseif ( $ep_crate->ITEM_TYPE == 'N' ) @elseif ( $ep_crate->ITEM_TYPE == 'H' ) @endif
{{ $ep_crate->ITEM_NAME }}
{{ $ep_crate->PRICE_ZP }} EP

{{ $ep_crate->ITEM_DESC }}

@if ( $ep > $ep_crate->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($ep-$ep_crate->PRICE_ZP) .'') @php ($buy_button='
') @elseif ( $ep < $ep_crate->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($ep-$ep_crate->PRICE_ZP) .'') @php ($buy_button='
') @endif {{ __("shop.buy") }} @if ($ep_crate->END_DATE < "3000-12-31") UNTIL: {{ $ep_crate->END_DATE }} @endif
@endforeach {{ $ep_crates->onEachSide(5)->appends(['shop_type' => 'ep', 'tab' => 'crates'])->links("pagination.cf-pagination", ["paginator" => $ep_crates]) }}
@foreach ($ep_vfx as $ep_vfx_item)
IMG_URL }}> @if ( $ep_vfx_item->ITEM_TYPE == 'V' ) @elseif ( $ep_vfx_item->ITEM_TYPE == 'N' ) @elseif ( $ep_vfx_item->ITEM_TYPE == 'H' ) @endif
{{ $ep_vfx_item->ITEM_NAME }}
{{ $ep_vfx_item->PRICE_ZP }} EP

{{ $ep_vfx_item->ITEM_DESC }}

@if ( $ep > $ep_vfx_item->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($ep-$ep_vfx_item->PRICE_ZP) .'') @php ($buy_button='
') @elseif ( $ep < $ep_vfx_item->PRICE_ZP ) @php ($remaining_balance = ''. __("shop.remainingbalance") .' '. number_format($ep-$ep_vfx_item->PRICE_ZP) .'') @php ($buy_button='
') @endif {{ __("shop.buy") }} @if ($ep_vfx_item->END_DATE < "3000-12-31") UNTIL: {{ $ep_vfx_item->END_DATE }} @endif
@endforeach {{ $ep_vfx->onEachSide(5)->appends(['shop_type' => 'ep', 'tab' => 'vfx'])->links("pagination.cf-pagination", ["paginator" => $ep_vfx]) }}
@endsection @section('js') @endsection