Closed afarral closed 4 years ago
Thank you for that, i have that, the issue i am having is how to access and loop through the json modifications to show this, e.g "modifcations"=>"......... "enddate": {modified": "27/11/2019" .........
as
<td>enddate</td><td> 27/11/2019</td>
Thank you for that, i have that, the issue i am having is how to access and loop through the json modifications to show this
This is more of a general PHP question than anything - unrelated to this package.
PHP:
foreach ($modification->modifications as $key => $modification) {
echo "{$key}: {$modification['modified']}".PHP_EOL;
}
Blade:
@foreach ($modification->modifications as $key => $modification)
{{ $key }}: {{ $modification['modified'] }}
@endforeach
Collections:
collect($modification->modifications)->each(function ($modification, $key) {
echo "{$key}: {$modification['modified']}".PHP_EOL;
});
Hi I was wondering how you can show the records to be approved, ideally in a table with an approve and reject button. Thanks