PHP Laravel 8 - Quick Tasks
Budget: $10 – $30 AUD
Laravel 8
My table has uuids that correspond to other tables please provide the best solution to provide the corresponding name
Record Date - Only Show Date (not time)
facility_id - show facility_name from facilties table
supplier_id - show supplier_name from vendors table
received_id - show first_name and last_name from users table
Invoice Linked - check if goods_received 'id' exists in kitchen_invoices table.
Current Controller Code
public function index()
{
$goodsreceived = GoodsReceived::get()->sortByDesc("created_at");
return view('hospitality.goodsreceived',
[
'goodsreceived' => $goodsreceived,
'page_title' => "Goods Received"
]);
}
Current Blade Code
<table class="table table-bordered">
<tr>
<th>Record Date</th>
<th>Facility</th>
<th>Supplier</th>
<th>Goods Checked</th>
<th>Temperature</th>
<th>Received By</th>
<th>Invoice Linked</th>
</tr>
@foreach ($goodsreceived as $record)
<tr>
<td>{{ $record->created_at }}</td>
<td>{{ $record->facility_id }}</td>
<td>{{ $record->supplier_id }}</td>
<td>{{ $record->goods_checked }}</td>
<td>{{ $record->temperature }}</td>
<td>{{ $record->user_id }}</td>
<td>needs adding</td>
</tr>
@endforeach
</table>
Screenshot of table and copy of the requirements in the .txt file.
No time wasters or companies please, maximum budget AUD$15.00
My table has uuids that correspond to other tables please provide the best solution to provide the corresponding name
Record Date - Only Show Date (not time)
facility_id - show facility_name from facilties table
supplier_id - show supplier_name from vendors table
received_id - show first_name and last_name from users table
Invoice Linked - check if goods_received 'id' exists in kitchen_invoices table.
Current Controller Code
public function index()
{
$goodsreceived = GoodsReceived::get()->sortByDesc("created_at");
return view('hospitality.goodsreceived',
[
'goodsreceived' => $goodsreceived,
'page_title' => "Goods Received"
]);
}
Current Blade Code
<table class="table table-bordered">
<tr>
<th>Record Date</th>
<th>Facility</th>
<th>Supplier</th>
<th>Goods Checked</th>
<th>Temperature</th>
<th>Received By</th>
<th>Invoice Linked</th>
</tr>
@foreach ($goodsreceived as $record)
<tr>
<td>{{ $record->created_at }}</td>
<td>{{ $record->facility_id }}</td>
<td>{{ $record->supplier_id }}</td>
<td>{{ $record->goods_checked }}</td>
<td>{{ $record->temperature }}</td>
<td>{{ $record->user_id }}</td>
<td>needs adding</td>
</tr>
@endforeach
</table>
Screenshot of table and copy of the requirements in the .txt file.
No time wasters or companies please, maximum budget AUD$15.00