@extends('layouts.app', ['page' => 'invoices'])
@section('title', __('messages.invoices'))
@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 = "
@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 invoices ORDER BY id DESC");
while($row = mysqli_fetch_array($result2)){
$estatus = $row["estatus"];
if (strpos($estatus, 'PAGO WEB') !== false) {
$html2 = "
ORDEN | Actualizar Pagos Vía Web.
Ver aquí.
";
echo $html2;
break;
}
}
@endphp
@endsection
@section('content')
@include('application.invoices._filters')
@include('application.invoices._table')
@endsection