@extends('layouts.main.master') @section('title') Xây dựng cấu hình PC @endsection @section('description') Xây dựng cấu hình PC thông minh, mô phỏng và báo giá cấu hình pc bạn dự định xây dựng @endsection @section('image') {{url(''.$setting->logo)}} @endsection @section('js') @endsection @section('css') @endsection @section('content')
@php $total = 0; @endphp @foreach((array) session('buildpc') as $id => $details) @php if($details['status_variant'] == 1){ $total += $details['price'] * $details['quantity'] ; }else{ if ($details['discount'] > 0) { $total += $details['discount'] * $details['quantity'] ; }else{ $total += $details['price'] * $details['quantity'] ; } } @endphp @endforeach

Xây dựng cấu hình PC

@if (count($listBuildpc) > 0) @foreach ($listBuildpc as $key => $item) @if ($item['pro_id'] != 0)

{{$item['title']}}

undefined

{{$item['name']}}

@if ($item['price'] > 0) @if ($item['status_variant'] == 1) {{get_price_variant($item['pro_id'])}}₫ {{number_format($item['price'])}}₫ @else {{number_format($item['discount'])}}₫ {{number_format($item['price'])}}₫ @endif @else Liên hệ @endif
@if ($item['quantity'] > 1) @else @endif
@else

{{$item['title']}}

undefined
@endif @endforeach @endif
@if ($total > 0)
Chi phí dự tính:
{{number_format($total)}}₫
Mua Ngay
Thêm giỏ hàng Nhận tư vấn ngay
@else @endif
@endsection