@extends('layouts.app', ['page' => 'estimates'])
@section('title', __('messages.estimates'))
@section('page_header')
@php
$con1 = mysqli_connect("localhost","boxshopd_compras","c0GvwJvfhslg","boxshopd_billing");
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
die();
}
$result = mysqli_query($con1, "SELECT * FROM estimates ORDER BY id DESC");
while($row = mysqli_fetch_array($result)){
$estatus1 = $row["estatus"];
$html = "";
if (strpos($estatus1, 'POR COTIZAR') !== false) {
$html = "
{{ __('messages.estimates') }}
add
{{ __('messages.create_estimate') }}
@php
$con2 = mysqli_connect("localhost","boxshopd_compras","c0GvwJvfhslg","boxshopd_billing");
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
die();
}
$result2 = mysqli_query($con2, "SELECT * FROM estimates ORDER BY id DESC");
while($row = mysqli_fetch_array($result2)){
$estatus = $row["estatus"];
if (strpos($estatus, 'PAGO WEB') !== false) {
$html2 = "
COTIZACIÓN | Actualizar Pagos Vía Web.
Ver aquí.
";
echo $html2;
break;
}
}
@endphp
@endsection
@section('content')
@include('application.estimates._filters')
@include('application.estimates._table')
@endsection